Trinary operator?

Oyvind Gronnesby oyving+news at pvv.org
Wed Apr 24 16:57:20 EDT 2002


* Cimarron Taylor
|
| Will this do what you want?
| 
| verboseGender = ('female','male')[gender=='m']

Wouldn't this break in a PEP 285 Python world?

-- 
Øyvind Grønnesby
have castle, need dragon



More information about the Python-list mailing list