Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.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.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'executed': 0.09; 'from:addr:ethan': 0.09; 'from:addr:stoneleaf.us': 0.09; 'from:name:ethan furman': 0.09; 'message-id:@stoneleaf.us': 0.09; 'received:74.54.199': 0.09; 'received:74.54.199.50': 0.09; 'received:gator410.hostgator.com': 0.09; 'to:name:python list': 0.09; '~ethan~': 0.09; 'this:': 0.11; 'def': 0.13; 'wrote:': 0.14; 'expr': 0.16; 'func():': 0.16; 'received:72.11': 0.16; 'received:72.11.125': 0.16; 'received:72.11.125.166': 0.16; 'received:gateway01.websitewelcome.com': 0.16; 'return.': 0.16; 'discussion': 0.20; 'code': 0.22; 'header:In-Reply-To:1': 0.22; 'keeps': 0.24; 'subject: -- ': 0.25; 'regardless': 0.26; 'function': 0.27; 'yet': 0.30; 'along.': 0.31; 'yesterday': 0.31; 'however,': 0.31; 'to:addr:python-list': 0.32; 'done': 0.32; 'lines': 0.34; 'post': 0.34; 'there': 0.35; 'question': 0.35; 'header:User-Agent:1': 0.35; 'point': 0.35; 'slow': 0.35; 'getting': 0.36; 'think': 0.36; 'none': 0.36; 'to:addr:python.org': 0.39; 'where': 0.39; 'except': 0.39; 'would': 0.40; "it's": 0.40; 'header:Received:5': 0.40; 'received:74.54': 0.60; 'back': 0.61; 'received:hostgator.com': 0.64; 'today!': 0.65; 'day': 0.66; 'said:': 0.68; 'received:websitewelcome.com': 0.71; 'stand': 0.71; 'funny': 0.77; 'received:69.56': 0.77; 'subjective': 0.84 Date: Tue, 12 Apr 2011 16:06:55 -0700 From: Ethan Furman User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: python list Subject: Re: Feature suggestion -- return if true References: <8abff237-5ccd-4eb6-85c8-cdc9e87520b7@bl1g2000vbb.googlegroups.com> <87k4eze4dl.fsf@mithlond.arda> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator410.hostgator.com X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - stoneleaf.us X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: mail.admailinc.com ([192.168.10.136]) [72.11.125.166]:2395 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: 32 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1302648982 news.xs4all.nl 41102 [::ffff:82.94.164.166]:41844 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:3097 James Mills wrote: > Are we done with this discussion yet ? :) > *sigh* It was a slow day yesterday and I have > a funny feeling it's going to be the same today! > > Regardless of anyone's subjective opinions as to what > was clear - I still stand by what I said. I think I see your point -- the OP said: --> _temp = expr --> if _temp: return _temp which is where you're getting --> return _temp or None However, most everyone ('cept you, it seems! ;) understood that there would be more lines of code such that if bool(expr) == False no return is executed and the function keeps going merrily along. Like this: --> def func(): --> var1 = something() --> var2 = something_else('this') --> return? var1.hobgle(var2) --> var3 = last_resort(var1) --> return var3.wiglat(var2) Looking back at the whole post now, I see nothing there to concretely make that point except the question mark on the return. Hope this helps. ~Ethan~