Yet Another PEP308 syntax

damien morton morton at dennisinter.com
Mon Feb 10 15:04:45 EST 2003


Gerrit Holl <gerrit at nl.linux.org> wrote in message news:<mailman.1044892786.2769.python-list at python.org>...
> Hi,
> 
> although I am against a ternary operator, here is Yet Another PEP308
> syntax:
> 
> a = ?(test, true_case, false_case)
> or
> a = test?(true_case, false_case)
> 
> yours,
> Gerrit.

Counter proposal:

a = test ? true_case, false_case ¿

<2.0 wink>

(sometimes punctuation isnt such a bad thing)




More information about the Python-list mailing list