Path: csiph.com!usenet.pasdenom.info!news.albasani.net!newsreader4.netcologne.de!news.netcologne.de!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'syntax': 0.03; 'subject:Python': 0.05; 'python': 0.09; '"if': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; '"in"': 0.16; 'boolean': 0.16; 'operator.': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'tabs': 0.16; 'thu,': 0.17; 'windows': 0.19; 'feb': 0.19; 'equivalent': 0.20; 'error.': 0.21; 'header:X-Complaints-To:1': 0.28; 'editors': 0.29; 'indentation': 0.29; 'source': 0.29; 'becomes': 0.30; 'file': 0.32; 'url:home': 0.33; 'to:addr:python-list': 0.33; 'returning': 0.35; 'open': 0.35; 'received:org': 0.36; 'but': 0.36; 'charset:us-ascii': 0.36; 'problems': 0.36; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'different': 0.63; 'results': 0.65; 'levels': 0.66; '(is': 0.84; '2013': 0.84; 'dennis': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: Python Newbie Date: Thu, 21 Feb 2013 19:35:45 -0500 Organization: > Bestiaria Support Staff < References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-76-253-104-112.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 3.3/32.846 X-No-Archive: YES 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: 1361493352 news.xs4all.nl 6912 [2001:888:2000:d::a6]:41216 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:39506 On Thu, 21 Feb 2013 13:26:41 -0800 (PST), Piterrr declaimed the following in gmane.comp.python.general: > For example, you open a source file in different editors and the indentation levels change even though i only have spaces, no tabs (compare Windows Notepad and Notepad++). Is one using a proportional spaced font while the other is using a mono spaced font? > yntax. For example, when I write "if (myVariable != 0):" then this is OK but "for (i in intAry):" results in syntax error. Apparently Python has problems with my use of parentheses. How retarded. I No -- (i in intAry) is returning a single boolean result (is the value of "i" IN the value of "intAry"), so "for (i in intAry)" becomes the equivalent of "for True" or "for False" depending on the result of the "in" operator. -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/