python short conditional?

Christos TZOTZIOY Georgiou tzot at sil-tec.gr
Wed Sep 3 13:40:44 CEST 2003


On Wed, 03 Sep 2003 01:16:45 +0100, rumours say that Pieter Claassen
<pieter at countersnipe.com> might have written:

>I am looking to find a short conditional for python equivalent
>to the perl question mark operator 
>
>statement? if true:else false
>
>Any recommendations on this?

See Python FAQ:
http://www.python.org/cgi-bin/faqw.py?req=all#4.16

See also what is true and what is false in Python:
http://www.python.org/doc/current/ref/Booleans.html
-- 
TZOTZIOY, I speak England very best,
Microsoft Security Alert: the Matrix began as open source.




More information about the Python-list mailing list