[Python-Dev] Trinary Operators (original) (raw)

Guido van Rossum guido@python.org
Thu, 06 Feb 2003 14:03:21 -0500


As a confirmed lambda fan and somebody who wants the trinary op badly enough that I implemented it once, I strongly concur. This wouldn't completely repair the weakness of lambdas, but it would be substantial help.

Should I dust off that patch and write a PEP?

I don't recall what syntax your patch implemented.

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.)

--Guido van Rossum (home page: http://www.python.org/~guido/)