Reinhold Birkenfeld writes:

Hi,

after Guido's pronouncement yesterday, in one of the next versions of Python
there will be a conditional expression with the following syntax:

X if C else Y

which is the same as today's

(Y, X)[bool(C)]

What's wrong with "C ? X:Y"?

Aside from ":" being overloaded?

Attachment: pgpZksJ3aZt0b.pgp
Description: PGP signature

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to