Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!news2.euro.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!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; '"if': 0.04; 'received:209.85.213.46': 0.07; 'received:mail- yw0-f46.google.com': 0.07; 'executed': 0.09; 'false,': 0.09; 'sun,': 0.09; 'to:name:python list': 0.09; 'pm,': 0.11; 'wrote:': 0.14; 'simplified': 0.16; 'code': 0.22; 'header:In-Reply-To:1': 0.22; 'received:209.85.213': 0.23; 'version': 0.25; 'subject: -- ': 0.25; 'message-id:@mail.gmail.com': 0.28; "won't": 0.30; '17,': 0.31; 'solved': 0.31; "can't": 0.31; 'to:addr:python-list': 0.32; 'martin': 0.33; 'bit': 0.33; 'there': 0.35; 'way.': 0.37; 'received:209.85': 0.37; 'apr': 0.38; 'received:google.com': 0.38; 'but': 0.38; 'to:addr:python.org': 0.39; 'received:209': 0.39; 'said': 0.39; 'header:Received:5': 0.40; '2011': 0.62; 'yourself': 0.66; 'this!': 0.84 MIME-Version: 1.0 In-Reply-To: References: <8abff237-5ccd-4eb6-85c8-cdc9e87520b7@bl1g2000vbb.googlegroups.com> From: James Mills Date: Mon, 18 Apr 2011 09:36:52 +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: 17 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1303083440 news.xs4all.nl 81479 [::ffff:82.94.164.166]:56671 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:3436 On Sun, Apr 17, 2011 at 8:03 PM, Martin v. Loewis wrote: > No, it can't be simplified in this way. > If there is code after that snippet, then > it will get executed in the original version if _temp is > false, but won't get executed in your simplification. Martin, we've been over this! :) And you're a bit late... You said it yourself "If there is code after that snippet" cheers James -- -- James Mills -- -- "Problems are solved by method"