Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.dougwise.org!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.kpn.net!pfeed08.wxs.nl!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.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'behavior.': 0.07; 'python': 0.07; '"""': 0.09; 'received:209.85.160.174': 0.09; 'received:mail-gy0-f174.google.com': 0.09; 'to:name:python list': 0.09; 'pm,': 0.11; 'syntax': 0.12; 'wrote:': 0.14; 'expr': 0.16; 'post:': 0.16; 'simplified': 0.16; 'tue,': 0.20; 'header:In-Reply- To:1': 0.22; 'expanded': 0.23; "didn't": 0.25; 'subject: -- ': 0.25; 'equivalent': 0.26; 'putting': 0.26; 'message- id:@mail.gmail.com': 0.28; 'received:209.85.160': 0.28; 'seem': 0.30; 'quoting': 0.31; 'solved': 0.31; 'does': 0.31; 'to:addr :python-list': 0.32; 'none': 0.36; 'received:209.85': 0.37; 'apr': 0.38; 'received:google.com': 0.38; 'earlier': 0.39; 'to:addr:python.org': 0.39; 'could': 0.39; 'received:209': 0.39; 'header:Received:5': 0.40; 'carefully': 0.60; '2011': 0.62; '12:18': 0.84; 'fitting': 0.84; 'edwards': 0.91 MIME-Version: 1.0 In-Reply-To: References: <8abff237-5ccd-4eb6-85c8-cdc9e87520b7@bl1g2000vbb.googlegroups.com> From: James Mills Date: Tue, 12 Apr 2011 12:44:39 +1000 Subject: Re: Feature suggestion -- return if true To: python list Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: 41 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1302576304 news.xs4all.nl 81476 [::ffff:82.94.164.166]:58532 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:3018 On Tue, Apr 12, 2011 at 12:18 PM, Grant Edwards w= rote: > You stated that > > =C2=A0return? > > was equivalent to > > =C2=A0return or None This is _not_ what I said. Quoting from my earlier post: """ > return? expr This syntax does not fit well within python ideology. > be expanded to > > _temp =3D expr > if _temp: return _temp This could be simplified to just: return expr or None """ Please read carefully before putting words in my mouth. I stated very clear y that return? expr didn't seem fitting in the python ideology as syntax for this behavior. cheers James --=20 -- James Mills -- -- "Problems are solved by method"