Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.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.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:while': 0.07; 'python': 0.08; 'assert': 0.09; 'false,': 0.09; 'am,': 0.12; 'cc:addr:python-list': 0.15; 'here"?': 0.16; 'reached:': 0.16; 'to:addr:xemacs.org': 0.16; 'typo.': 0.16; 'wrote:': 0.16; 'cc:no real name:2**0': 0.21; 'header:In-Reply-To:1': 0.22; 'sfxlen:0': 0.23; "shouldn't": 0.23; 'cc:2**0': 0.25; 'code': 0.25; 'writes:': 0.25; 'cc:addr:python.org': 0.29; 'header:User-Agent:1': 0.33; 'there': 0.33; 'something': 0.35; 'similar': 0.36; "there's": 0.37; 'portion': 0.38; 'received:192': 0.38; 'should': 0.38; 'why': 0.39; 'subject:: ': 0.39; 'header:Reply-To:1': 0.71; 'reply-to:no real name:2**0': 0.72 Date: Mon, 23 Jan 2012 13:33:42 -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: Hrvoje Niksic 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> <87lioyk0pi.fsf@xemacs.org> In-Reply-To: <87lioyk0pi.fsf@xemacs.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:/QTNJKxJSBI+fqtoTn/awduD4rnMaCsImhGOwoeoCVr 3DmaN3tA+KiVYZfod/4019gLMJdnPo6X967XZAwM4We3MvQRnH 2miOdIajGznwg0b0HlP6ZfLMo+/iN+BegmF96wRmqUHamkEmbr 86iBDeK3nbrOI2aDJpypSSsOi2hSM8EH3YbVjmu+2Nn+l5c9kO jPvThah+pVpr1zgo83mUhQUIR/WBwInluTHUO+M3g23D71xhR+ kY80Dfcitq9aTTWdZjvy/62ILs5kE/ZsNKnCyL/W3IA/c24/vL RvF8FhrEvmaMjfxCLinIeMUZ7Xwx+ZYciAbhHZTxmOXA1knUql rTqN9u8H2qYzrfTzfMGs= 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: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1327343648 news.xs4all.nl 6939 [2001:888:2000:d::a6]:57571 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:19273 On 01/23/2012 08:28 AM, Hrvoje Niksic wrote: > Dave Angel writes: > >> I do something similar when there's a portion of code that should >> never be reached: >> >> assert("reason why I cannot get here") > Shouldn't that be assert False, "reason why I cannot get here"? You caught me in a typo. If it's in python there should be a not there, and if it's in C, a bang. -- DaveA