Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!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.031 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'to:name:python list': 0.09; 'pm,': 0.11; 'wrote:': 0.14; 'guys.': 0.16; 'statements.': 0.16; 'true,': 0.19; 'tue,': 0.20; 'header:In-Reply-To:1': 0.22; 'subject: -- ': 0.25; 'message-id:@mail.gmail.com': 0.28; 'received:209.85.161': 0.29; 'nobody': 0.29; 'this.': 0.30; 'solved': 0.31; 'to:addr:python-list': 0.32; 'expression': 0.33; 'considered': 0.36; 'should': 0.37; 'received:209.85': 0.37; 'apr': 0.38; 'received:google.com': 0.38; 'to:addr:python.org': 0.39; 'received:209': 0.39; 'header:Received:5': 0.40; '2011': 0.62 MIME-Version: 1.0 In-Reply-To: References: <8abff237-5ccd-4eb6-85c8-cdc9e87520b7@bl1g2000vbb.googlegroups.com> From: James Mills Date: Tue, 12 Apr 2011 16:21:43 +1000 Subject: Re: Feature suggestion -- return if true To: python list Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 15 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1302589325 news.xs4all.nl 81481 [::ffff:82.94.164.166]:36246 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:3028 On Tue, Apr 12, 2011 at 4:08 PM, Nobody wrote: > It should be abundantly clear that this only returns if the expression is > considered true, otherwise it continues on to the following statements. Uggh come on guys. We've been over this. You cannot make that assumption. cheers James -- -- James Mills -- -- "Problems are solved by method"