conditional expressions (RE: Loop-and-a-half (Re: Curious assignment behaviour))

Ben Wolfson wolfson at
Mon Oct 15 20:07:07 CEST 2001

In article <9qf81s$lut$1 at>, "Ralph Corderoy"
<ralph at> wrote:

> Hi Tim,
>> implemented-but-not-checked-in-ly y'rs  - tim
> Don't check it in.  It's horrible.  I'm all for a ?: in Python using
> some notation or other but requiring parenthesis around just this kind
> of expression isn't on.
> It's non-obvious and distinct from other areas.  It is surprising!

Furthermore the use of "then" in this case but not in the more general
if: elif: else: case is potentially confusing.

Barnabas T. Rumjuggler
Clock zero: You are a pirate masquerading as a counselor.

More information about the Python-list mailing list