[Tutor] Losing the expressiveness ofC'sfor-statement?/RESENDwith example
Kent Johnson
kent37 at tds.net
Fri Aug 10 16:23:02 CEST 2007
Smith, Jeff wrote:
> P.S. This should in no way be construed as undercutting my belief that
> Python should have a case statement, a ternary operator, and
> full-fledged lambdas
Python 2.5 does have conditional expressions that do the work of a
ternary operator:
x = y if z else w
http://docs.python.org/whatsnew/pep-308.html
Kent
More information about the Tutor
mailing list