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

Gerald S. Williams gsw@agere.com
Thu, 6 Feb 2003 16:41:07 -0500


Andrew Koenig wrote:

On the other hand, we already have the problem with list comprehensions:

[f(i) for i in range(n) if g(i)]

I tried to be careful not to imply that left-to-right short-circuiting was the only way to go. And I don't think we're likely to confuse people who are already comfortable with list comprehensions. It's the other 99% I'm concerned about. ;-)

-Jerry