Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #82848

Configuring code editors (was Re: IDLE ...)

From Terry Reedy <tjreedy@udel.edu>
Subject Configuring code editors (was Re: IDLE ...)
Date 2014-12-23 14:16 -0500
References <4eec9365-4103-4474-a47f-ea665b265b1e@googlegroups.com> <0a6dnbuXydWwFATJnZ2dnUU7-LGdnZ2d@giganews.com>
Newsgroups comp.lang.python
Message-ID <mailman.17159.1419362211.18130.python-list@python.org> (permalink)

Show all headers | View raw


On 12/23/2014 10:24 AM, pypythotho wrote:
> In Command Prompt, 'python -m idlelib' helped me to dicover the
> problem source. An explicit message told that an indentation was
> insconsistant in the file ntpath.py I modified previously with
> notepad++. I replaced a tab by 4 spaces and IDLE run again like a
> charm.

[It was python, not Idle, that had a problem with the tab.]

The stdlib .py files (should all) use the PEP8 standard 4 space indents. 
  Idle comes configured to convert tabs to 4 spaces.

Notepad++ does not.  Settings -> Language Menu/Tab Settings lets one set 
a default tab handling setting and langauge-specific tab settings. 
Python should be configured for tabsize 4 and [X] replace tab with 
space.  Unless, of course, one uses tabs.  But then one should either 
not edit stdlib files or make sure to switch every time one edits one. 
I have had settings disappear after upgrading (ugh).

Similar comments apply to other code editors.

-- 
Terry Jan Reedy

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what? pypythotho <fox_sktjcn@TrashMail.com> - 2014-12-23 09:24 -0600
  Configuring code editors (was Re: IDLE ...) Terry Reedy <tjreedy@udel.edu> - 2014-12-23 14:16 -0500

csiph-web