anything new on the ternary operator?
Erik Max Francis
max at alcyone.com
Sun Jul 6 22:36:16 EDT 2003
Russell Reagan wrote:
> What is superior about using the proposed ternary operator instead of
> using
> the 'and' and 'or' operators to simulate inline logic?
Because the and/or technique doesn't quite work. Instead of rehashing
this topic again, I'd recommend you check out the PEP 308 on the
conditional operator which goes through all the details:
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
/ \ She glanced at her watch ... It was 9:23.
\__/ James Clavell
More information about the Python-list
mailing list