(test?return_true:return_false)

Sean Ross frobozz_electric at hotmail.com
Sat Jan 25 09:52:43 EST 2003


"Erik Max Francis" <max at alcyone.com> wrote in message
news:3E31DCD3.6C1E6AE3 at alcyone.com...
> There are always ways to do it; the question is whether those ways
> belong in production code (especially in such an inherently readable and
> transparent language such as Python) or in obfuscated programming
> contests.


Actually, the question was

Mikael Schönenberg <micke at strakt.com> wrote in message
news:<mailman.1043336848.6443.python-list at python.org>...
> > Is there a python equivalent to the (test?return_true:return_false)

And the answer is no, but you can simulate it as follows...
But, thanks for the sermon...  ;)

Sean (The Converted)






More information about the Python-list mailing list