For review: PEP 308 - If-then-else expression

Dale Strickland-Clark dale at riverhall.NOTHANKS.co.uk
Sat Feb 8 10:25:50 EST 2003


Anthony Baxter <anthony at interlink.com.au> wrote:

>I _like_ the fact that Python doesn't have 15 different ways to spell
>"if" (like another P language). The trailing "unless" clause was actually
>one of the things that drove me away from Perl, and this proposed addition
>to the language really brings up unpleasant memories.
>
>I've been programming in python now for something around 10 years, and
>I can honestly say I've _never_ said "gee, I wish python had a ternary
>operator". Sure, it might produce more compact code, but in this case it's
>clearly at the expense of readability. So I'm a definite -1 on this.
>

So if this feature is added, you won't use it, right?

That means it won't affect you one way or the other.

So voting against it would be merely an attempt to scupper it for
those of us who would really like this?
--
Dale Strickland-Clark
Riverhall Systems Ltd




More information about the Python-list mailing list