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


Groups > comp.lang.python > #82841 > unrolled thread

Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?

Started bypypythotho <fox_sktjcn@TrashMail.com>
First post2014-12-23 09:24 -0600
Last post2014-12-23 14:16 -0500
Articles 2 — 2 participants

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  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

#82841 — Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?

Frompypythotho <fox_sktjcn@TrashMail.com>
Date2014-12-23 09:24 -0600
SubjectRe: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?
Message-ID<0a6dnbuXydWwFATJnZ2dnUU7-LGdnZ2d@giganews.com>
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.

[toc] | [next] | [standalone]


#82848 — Configuring code editors (was Re: IDLE ...)

FromTerry Reedy <tjreedy@udel.edu>
Date2014-12-23 14:16 -0500
SubjectConfiguring code editors (was Re: IDLE ...)
Message-ID<mailman.17159.1419362211.18130.python-list@python.org>
In reply to#82841
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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web