Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!us.feeder.erje.net!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.089 X-Spam-Evidence: '*H*': 0.83; '*S*': 0.00; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; 'subject:when': 0.16; 'wrote:': 0.17; 'branch': 0.23; 'cc:no real name:2**0': 0.24; 'cc:2**1': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'cc:addr:gmail.com': 0.27; 'received:google.com': 0.34; 'received:209.85': 0.35; 'explain': 0.36; 'execute': 0.37; 'detail': 0.37; 'received:209': 0.37; 'received:209.85.216': 0.37; 'subject:: ': 0.38; 'more': 0.63; '20,': 0.65; '2013': 0.84; 'rene': 0.84 X-Received: by 10.50.87.165 with SMTP id az5mr3451101igb.1.1358744265378; Sun, 20 Jan 2013 20:57:45 -0800 (PST) Newsgroups: comp.lang.python Date: Sun, 20 Jan 2013 20:57:45 -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=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org, eli m 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: 9 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1358744274 news.xs4all.nl 6979 [2001:888:2000:d::a6]:35212 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:37147 On Sunday, January 20, 2013 8:54:13 PM UTC-8, Ren=C3=A9 Kla=C4=8Dan wrote: > You have to break while loop not to execute else branch >=20 >=20 > Rene >=20 >=20 >=20 Can you explain in more detail please.