Path: csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; 'subject:IDLE': 0.04; 'explicit': 0.07; 'modified': 0.07; 'source.': 0.07; 'subject:code': 0.07; "'python": 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'spaces': 0.09; 'python': 0.11; 'jan': 0.12; '(should': 0.16; '.py': 0.16; '[it': 0.16; '[x]': 0.16; 'idle,': 0.16; 'pep8': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'tab': 0.16; 'tabs': 0.16; 'language': 0.16; 'wrote:': 0.18; 'command': 0.22; 'settings': 0.22; 'previously': 0.22; 'header:User-Agent:1': 0.23; 'lets': 0.24; 'replace': 0.24; 'settings.': 0.24; 'space.': 0.24; 'handling': 0.26; 'switch': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'code': 0.31; 'comments': 0.31; 'indentation': 0.31; 'file': 0.32; 'run': 0.32; 'not.': 0.33; 'problem': 0.35; 'subject: (': 0.35; 'convert': 0.35; 'but': 0.35; 'idle': 0.36; 'similar': 0.36; 'should': 0.36; 'configured': 0.38; 'to:addr :python-list': 0.38; 'files': 0.38; 'does': 0.39; 'sure': 0.39; 'to:addr:python.org': 0.39; 'either': 0.39; 'received:org': 0.40; 'space': 0.40; 'upgrading': 0.60; 'default': 0.69; 'disappear': 0.84; 'received:fios.verizon.net': 0.84; 'received:108': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Configuring code editors (was Re: IDLE ...) Date: Tue, 23 Dec 2014 14:16:23 -0500 References: <4eec9365-4103-4474-a47f-ea665b265b1e@googlegroups.com> <0a6dnbuXydWwFATJnZ2dnUU7-LGdnZ2d@giganews.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-108-16-203-145.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 In-Reply-To: <0a6dnbuXydWwFATJnZ2dnUU7-LGdnZ2d@giganews.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 24 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1419362211 news.xs4all.nl 2932 [2001:888:2000:d::a6]:38460 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:82848 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