Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed1.swip.net!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!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.023 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'different,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'tab': 0.16; 'tabs': 0.16; 'unexpectedly': 0.16; 'issue.': 0.22; 'header:User-Agent:1': 0.23; 'aspect': 0.24; 'header:X-Complaints-To:1': 0.27; 'header:In- Reply-To:1': 0.27; 'chris': 0.29; 'code': 0.31; 'accidentally': 0.31; 'problem': 0.35; 'knowledge': 0.35; 'advice': 0.35; 'problem.': 0.35; 'received:84': 0.35; 'but': 0.35; 'introducing': 0.36; 'so,': 0.37; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'space': 0.40; 'read': 0.60; 'solve': 0.60; 'real': 0.63; 'life': 0.66; 'isaac': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Roel Schroeven Subject: Re: how to reduce bugs due to incorrect indentation Date: Fri, 07 Feb 2014 23:06:53 +0100 References: <52F3FF51.3050502@stoneleaf.us> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: d54c6d802.access.telenet.be User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) In-Reply-To: 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: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1391810827 news.xs4all.nl 2925 [2001:888:2000:d::a6]:53755 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:65614 Chris Angelico schreef: > But none of this would solve the OP's original issue. Whether it's a > tab or spaces, unexpectedly indenting a line of code is a problem. I had misread. I thought the problem was that the OP did want to indent, but accidentally used the tab key instead of the space bar to do so, introducing the dreaded mixing of tabs and spaces. Remapping the tab key would solve that problem. But the real problem was different, so my advice was indeed not a solution to the problem. I should've read better. -- The saddest aspect of life right now is that science gathers knowledge faster than society gathers wisdom. -- Isaac Asimov Roel Schroeven