[Python-ideas] except expression
Greg Ewing
greg.ewing at canterbury.ac.nz
Thu Feb 13 23:25:12 CET 2014
spir wrote:
> [By the way, this shows that:
> x = b if cond else a
> should really be:
> x = a else b if cond
> The difference being that the standard case is expressed first, the
> exceptional one being then introduced as an special variant.]
I don't think it shows that at all. Which is the normal
case and which is the exceptional one depends entirely
on how the condition is expressed.
--
Greg
More information about the Python-ideas
mailing list