PEP 308: Alternative conditional operator forms

Christos TZOTZIOY Georgiou DLNXPEGFQVEB at spammotel.com
Mon Feb 10 08:41:46 CET 2003


On Sun, 09 Feb 2003 16:22:38 -0800, rumours say that Erik Max Francis
<max at alcyone.com> might have written:

>Here is the list I have so far (C represents the conditional expression,
>x the if-true expression, y the if-false one):
>
>x if C else y # initial proposition in PEP
>C ? x ! y # mentioned in PEP
>(if C then x else y) # mentioned in PEP
>x when C else y
>(if C: x else: y)
>C ? x else y
>C -> x else y
>C -> (x, y)
>
>What else should be on this list?  (You can reply by email if you wish.)

C then x else y
-- 
TZOTZIOY, I speak England very best,
Real email address: 'dHpvdEBzaWwtdGVjLmdy\n'.decode('base64')




More information about the Python-list mailing list