the PHP ternary operator equivalent on Python

bonono at gmail.com bonono at gmail.com
Sat Nov 19 00:54:14 EST 2005


Roy Smith wrote:
> I think the list comprehensions are going to be the death of readable
> python programs.
Could be, but seems that someone in charge of the language wants
readable python programs to die then as if list comprehension is not
enough, there comes generator expression and now the formal acceptance
of ternary operator.




More information about the Python-list mailing list