---------- Forwarded message ---------- From: Reinhold Birkenfeld <reinhold-birkenfeld-nospam .at. wolke7 D.OT net> Date: Sep 30, 2005 9:09 AM Subject: [Info] PEP 308 accepted - new conditional expressions To: python-list@python.org
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)]
or
C and X or Y (only if X is True)
Reinhold -- http://mail.python.org/mailman/listinfo/python-list
--
# p.d.
©2005 Peter Decker |