Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed1.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.036 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'python:': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; 'subject:when': 0.16; 'succeeds,': 0.16; 'copied': 0.17; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; 'up.': 0.31; 'code': 0.31; 'received:google.com': 0.34; 'received:209.85': 0.35; 'received:209': 0.37; 'subject:: ': 0.38; 'your': 0.60; 'friend': 0.81; 'messed': 0.84 X-Received: by 10.50.7.244 with SMTP id m20mr2422285iga.14.1358744359424; Sun, 20 Jan 2013 20:59:19 -0800 (PST) Newsgroups: comp.lang.python Date: Sun, 20 Jan 2013 20:59:19 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=75.62.139.168; posting-account=T0Q4ngoAAADFqe_JPINLNp5NgW2XDzan References: <2cc6791f-ba56-406c-a5b0-b23023caf4bb@googlegroups.com> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 75.62.139.168 MIME-Version: 1.0 Subject: Re: Else statement executing when it shouldnt From: eli m To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Cc: python-list@python.org 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: , Message-ID: Lines: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1358744367 news.xs4all.nl 6869 [2001:888:2000:d::a6]:37139 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:37149 > > > > Your else is lined up with while, not with if. > > > > -m > > > > > > -- > > Lark's Tongue Guide to Python: http://lightbird.net/larks/ > > > > When a friend succeeds, I die a little. Gore Vidal Its lined up. It got messed up when i copied the code into the post.