PEP 308 - ternary operator

Wolfgang Strobl wks000 at t-online.de
Sun Feb 16 12:46:27 EST 2003


jcm <joshway-without-spam at myway.com>:

>I'm not moved by this example.  Rewrite it with Python's "(a and [b]
>or [c])[0]", or even just "a and b or c", and see if you like it
>better.  

For an upcoming IOPCC? Definitely. ;-)


-- 
Wir danken für die Beachtung aller Sicherheitsbestimmungen




More information about the Python-list mailing list