Python equivalent to a C trick

Roger Binns rogerb at rogerbinns.com
Tue Aug 10 04:43:08 EDT 2004


Dan wrote:
> Is there a python equivalent of this trick in C?
>
> Logic_Test ? True_Result : False_Result

The long answer to your question is at
http://www.python.org/peps/pep-0308.html

(in addition to the "hack" Sam posted :-)

Roger 





More information about the Python-list mailing list