the PHP ternary operator equivalent on Python

Simon Brunning simon.brunning at gmail.com
Fri Nov 18 13:59:32 EST 2005


On 18 Nov 2005 10:53:04 -0800, Daniel Crespo <dcrespo at gmail.com> wrote:
> I would like to know how can I do the PHP ternary operator/statement
> (... ? ... : ...) in Python...

Wait for Python 2.5 - <http://www.python.org/peps/pep-0308.html>.

--
Cheers,
Simon B,
simon at brunningonline.net,
http://www.brunningonline.net/simon/blog/



More information about the Python-list mailing list