[Python-Dev] Trinary Operators
Eric S. Raymond
esr@thyrsus.com
Thu, 6 Feb 2003 14:12:04 -0500
Guido van Rossum <guido@python.org>:
> > Should I dust off that patch and write a PEP?
>
> I don't recall what syntax your patch implemented.
I implemented a ? b : c, which you rejected for good reasons.
My choice today would be C ? x ! y, but x if C else y has some
attractions.
> If you want to write or co-author the PEP for (x if C else y), be my
> guest! (You probably have more time than I do at this point.)
I'll put it on my to-do list. Immediate action is unlikely as I have
a road trip coming up.
--
<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>