Path: csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!feeder.news-service.com!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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '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; '~ethan~': 0.09; 'programmer': 0.11; 'def': 0.13; 'wrote:': 0.14; 'func():': 0.16; 'furman': 0.16; 'mart\xednez': 0.16; 'received:72.11': 0.16; 'received:72.11.125': 0.16; 'received:72.11.125.166': 0.16; 'tue,': 0.20; 'not.': 0.22; 'header:In-Reply-To:1': 0.22; 'subject: -- ': 0.25; "wasn't": 0.25; "i'm": 0.26; 'object': 0.27; 'does': 0.31; 'to:addr:python- list': 0.32; 'uses': 0.34; 'question': 0.35; 'header:User- Agent:1': 0.35; '-0700,': 0.35; 'doing': 0.36; 'should': 0.37; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'received:74.54': 0.60; 'received:hostgator.com': 0.64; 'flow': 0.69; 'received:websitewelcome.com': 0.71; 'received:69.93': 0.91 Date: Tue, 12 Apr 2011 16:48:31 -0700 From: Ethan Furman User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: python-list@python.org Subject: Re: Feature suggestion -- return if true References: <8abff237-5ccd-4eb6-85c8-cdc9e87520b7@bl1g2000vbb.googlegroups.com> <87k4eze4dl.fsf@mithlond.arda> <4DA4DB0F.8040509@stoneleaf.us> <1302650129.8890.0.camel@localhost.localdomain> In-Reply-To: <1302650129.8890.0.camel@localhost.localdomain> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit 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]:2528 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: 1302651486 news.xs4all.nl 81482 [::ffff:82.94.164.166]:49434 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:3101 Westley Martínez wrote: > On Tue, 2011-04-12 at 16:06 -0700, Ethan Furman wrote: >> --> def func(): >> --> var1 = something() >> --> var2 = something_else('this') >> --> return? var1.hobgle(var2) >> --> var3 = last_resort(var1) >> --> return var3.wiglat(var2) > > The question mark makes the programmer look like he wasn't sure of what > he was doing at the time. "Hmm, should I return this object or not?" > Yeah, I'm definitely -1 on the ?, as well as -1 on the idea. All other major flow control uses indentation, and this does not. ~Ethan~