PEP-308 left to right, c ? a else b

Marco Mariani marco at sferacarta.com
Mon Feb 17 16:51:02 EST 2003


On Mon, Feb 17, 2003 at 11:23:35AM -0800, Erik Max Francis wrote:

> If c is the condition expression and a and b are the expressions to
> evaluate if it's true or false, respectively, then what you're proposing
> is
> 
> 	C ? x else y
> 
> which was proposed as an alternate to the ?: notation very early on in
> the threads.

Yes, and it's not in the PEP..

The PEP as it stands is awful, it's uglier than Perl.

The idea in itself scares me, and the syntax ... bah.... no comment








More information about the Python-list mailing list