Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!eweka.nl!hq-usenetpeers.eweka.nl!xlned.com!feeder7.xlned.com!newsfeed.xs4all.nl!newsfeed2.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.009 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'correct,': 0.09; 'dan': 0.09; 'funny,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'mine.': 0.16; 'nose': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'semantically': 0.16; 'wrote:': 0.18; '>>>': 0.22; 'header:User- Agent:1': 0.23; 'header:X-Complaints-To:1': 0.27; "doesn't": 0.30; 'along': 0.30; '(on': 0.31; '>>>>': 0.31; 'informative': 0.31; 'comment': 0.34; 'but': 0.35; 'next': 0.36; 'charset:us-ascii': 0.36; 'subject:new': 0.38; 'to:addr:python-list': 0.38; 'explain': 0.39; 'does': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'first': 0.61; 'more': 0.64; 'line,': 0.68; 'reads': 0.68; 'funny': 0.74 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dave Angel Subject: Re: new to While statements Date: Thu, 8 Aug 2013 01:31:09 +0000 (UTC) References: <69a10630-98dc-4a31-89ef-2770b3c1fd70@googlegroups.com> <90lMt.30102$907.25512@fx17.iad> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: 174.32.174.31 User-Agent: XPN/1.2.6 (Street Spirit ; Linux) 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: 25 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1375925491 news.xs4all.nl 15867 [2001:888:2000:d::a6]:42668 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:52158 Vito De Tullio wrote: > Dan Sommers wrote: > >>>> while "asking for reponse": >>> >>>> while "adventuring": >>> >>> that's a funny way to say `while True:`... >> >> Funny, perhaps, the first time you see it, but way more informative than >> the other way to the next one who comes along and reads it. > > While I understand that it's syntactically and semantically correct, my nose > still doesn't like it. > Neither does mine. There's no need for a trick here. "while True" reads better, and a comment (on the same line, preferably) can explain what the loop is for. -- DaveA