On 11/15/2010 10:26 PM, Steven D'Aprano wrote:
t = foo()+bar()+baz() if pred(it) else baz()-foo()-bar()

What does "it" mean here?

"it" would mean the result of the expression foo()+bar()+baz(). What else could it mean? There are valid objections to the proposal, but the intended semantics seem perfectly clear.

Cheers,
Ian

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to