Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4.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; 'from:addr:yahoo.co.uk': 0.04; 'context': 0.07; 'exit': 0.09; 'lawrence': 0.09; 'logic': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'tismer': 0.09; 'python': 0.11; 'bye,': 0.16; 'exit.': 0.16; 'logical.': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject: \n ': 0.16; 'whom?': 0.16; 'language': 0.16; 'wrote:': 0.18; 'programming': 0.22; 'header:User-Agent:1': 0.23; 'second': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'thus': 0.29; 'code': 0.31; 'flying': 0.31; 'subject:the': 0.34; 'but': 0.35; 'christian': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'world.': 0.61; 'first': 0.61; 'obama': 0.84; 'received:2': 0.84; 'subject:+': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: Possibly better loop construct, also labels+goto important and on the fly compiler idea. Date: Fri, 25 Oct 2013 15:13:02 +0100 References: <6f2b7$525f2302$5419b3e4$13466@cache1.tilbu1.nb.home.nl> <774fd$526a559c$5419b3e4$11247@cache1.tilbu1.nb.home.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-2-98-201-160.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 In-Reply-To: <774fd$526a559c$5419b3e4$11247@cache1.tilbu1.nb.home.nl> 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: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1382710403 news.xs4all.nl 15893 [2001:888:2000:d::a6]:53075 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:57524 On 24/10/2013 21:02, Skybuck Flying wrote: > Because it's logical. > > If the exit condition was placed on the top, the loop would exit > immediatly. > > Instead the desired behaviour might be to execute the code inside the > loop first and then exit. > > Thus seperating logic into enter and exit conditions makes sense. > > Bye, > Skybuck. Are you replying to Her Majesty the Queen, President Obama or whom? What context is this in? -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence