Erik Max Francis max at alcyone.com
Fri Jan 24 01:23:46 CET 2003

Daniel wrote:

> Is there a python equivalent to the (test?return_true:return_false)
> function?

No.  There are a variety of progressively uglier ways of simulating it
in Python, but the functionality does not exist.  See the FAQ, or search
Google Groups for "conditional expression" for extensive discussion of
the topic (another thread on the subject is still in progress in this
very newsgroup at the moment, even).

 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/  \ An undevout astronomer is mad.
\__/ Edward Young
    Bosskey.net: Quake III Arena / http://www.bosskey.net/q3a/
 A personal guide to Quake III Arena.

More information about the Python-list mailing list