Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.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.050 X-Spam-Evidence: '*H*': 0.90; '*S*': 0.00; 'subject:while': 0.07; 'python': 0.08; 'cheers!': 0.09; 'am,': 0.12; 'cc:addr:python- list': 0.15; 'alex23': 0.16; 'reached:': 0.16; 'wrote:': 0.16; 'jan': 0.19; 'cc:no real name:2**0': 0.21; 'header:In-Reply-To:1': 0.22; 'literal': 0.23; 'string': 0.24; 'cc:2**0': 0.25; 'code': 0.25; 'suggestion': 0.25; 'pm,': 0.26; '"the': 0.26; 'cc:addr:python.org': 0.29; "i've": 0.31; 'list': 0.32; 'header :User-Agent:1': 0.33; 'too': 0.34; 'typical': 0.34; 'something': 0.35; 'similar': 0.36; 'but': 0.37; "there's": 0.37; 'portion': 0.38; 'think': 0.38; 'received:192': 0.38; 'should': 0.38; 'mailing': 0.38; 'why': 0.39; 'subject:: ': 0.39; 'ever': 0.64; 'believe': 0.65; 'header:Reply-To:1': 0.71; 'reply-to:no real name:2**0': 0.72; 'encountered': 0.73; '10:55': 0.84; 'sommers': 0.84; 'temperature': 0.93 Date: Mon, 23 Jan 2012 08:02:30 -0500 From: Dave Angel User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111109 Thunderbird/3.1.16 MIME-Version: 1.0 To: alex23 Subject: Re: while True or while 1 References: <4F1AC1D4.2080402@gmail.com> <4f1b9dc4$0$29987$c3e8da3$5496439d@news.astraweb.com> <70a86eec-8fb5-477b-9797-e1f8af373b8e@nf9g2000pbc.googlegroups.com> In-Reply-To: <70a86eec-8fb5-477b-9797-e1f8af373b8e@nf9g2000pbc.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:e1xiXLrW2MkQvysSLfSo/5z9boQDuL2f0XgZYEW1Dvi aaFfz99BDN0fOicCFWuWn3z0bw+O7A+6UzGXkBffzgVNJmdv+e PHG4jqS+2ve0/WI2jWc1qjxafJJMfp2oSAEXYhPJ4rsC5pH493 4vN1ouvlOBbYNmXsbreg4X2XO/e3s/v2E6OXSAmyTu9k/F1aqB ISjGgiTMHi2HzDEMbsZ/IHorQu/o2PDsbD66lFx+dY7rzSg2Aq N7Cbuc1ZrkvPnenUXHkmrkP4wrc7VQwaRUiNq2p6Re3n7vL1Af SRyR5GZBeZBV9/Qa4o6/z0Po69bUPJLM1TPdfnGcHVvP6neJQ= = Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: d@davea.name 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: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1327323756 news.xs4all.nl 6844 [2001:888:2000:d::a6]:39593 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:19260 On 01/22/2012 10:55 PM, alex23 wrote: > On Jan 23, 2:05 am, Dan Sommers wrote: >> As per a now-ancient suggestion on this mailing list (I believe it was by >> Tim Peters), I've also been known to use a non-empty, literal Python >> string as a self-documenting, forever-True value in the typical loop-and-a- >> half cnstruct: >> >> while "the temperature is too big": > I don't think I've ever encountered this before, but I like it :) > Cheers! I do something similar when there's a portion of code that should never be reached: assert("reason why I cannot get here") -- DaveA