Re: [Python-Dev] Alternative forms [was: PEP 463: Exception-catching expressions]

2014-03-07 Thread Chris Angelico
On Sat, Mar 8, 2014 at 5:58 AM, Jim J. Jewett wrote: > > (Thu Mar 6 23:26:47 CET 2014) Chris Angelico responded: > >> On Fri, Mar 7, 2014 at 7:29 AM, Jim J. Jewett >> wrote: > >>> [ note that "x if y" already occurs in multiple contexts, and >>> always evaluates y before x. ] > >> Yes, but tha

Re: [Python-Dev] Alternative forms [was: PEP 463: Exception-catching expressions]

2014-03-07 Thread Jim J. Jewett
(Thu Mar 6 23:26:47 CET 2014) Chris Angelico responded: > On Fri, Mar 7, 2014 at 7:29 AM, Jim J. Jewett wrote: >> [ note that "x if y" already occurs in multiple contexts, and >> always evaluates y before x. ] > Yes, but that's still out of order. Yeah, but local consistency is more impo

Re: [Python-Dev] Alternative forms [was: PEP 463: Exception-catching expressions]

2014-03-06 Thread Chris Angelico
On Fri, Mar 7, 2014 at 7:29 AM, Jim J. Jewett wrote: > > The PEP currently says: > >> Alternative Proposals >> = > >> Discussion on python-ideas brought up the following syntax suggestions:: > >>value = expr except default if Exception [as e] > > This one was rejected becau

[Python-Dev] Alternative forms [was: PEP 463: Exception-catching expressions]

2014-03-06 Thread Jim J. Jewett
The PEP currently says: > Alternative Proposals > = > Discussion on python-ideas brought up the following syntax suggestions:: >value = expr except default if Exception [as e] This one was rejected because of the out-of-order evaluation. Note, however, that the (fart