anything new on the ternary operator?

Erik Max Francis max at alcyone.com
Tue Jul 8 18:46:39 EDT 2003


Tor wrote:

> (if C: x else: z)
> 
> Was this the winning syntax?

Best way to answer this is to just read PEP 308:

	http://www.python.org/peps/pep-0308.html

-- 
   Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
 __ San Jose, CA, USA && 37 20 N 121 53 W && &tSftDotIotE
/  \ To be adult is to be alone.
\__/  Jean Rostand




More information about the Python-list mailing list