[Python-Dev] Re: Trinary Operators

Andrew Koenig ark@research.att.com
06 Feb 2003 16:32:23 -0500


Eric> Yeeeouch.  And the proposed n-ary form is even worse.

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

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

Here, every evaluation of f(i) is preceded by an evaluation of g(i).

-- 
Andrew Koenig, ark@research.att.com, http://www.research.att.com/info/ark