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

Emile van Sebille emile at fenx.com
Fri Oct 12 20:25:52 EDT 2001


"Tim Peters" <tim at zope.com> wrote in message
news:mailman.1002927732.24673.python-list at python.org...
>
> If people sign off on taking "then" as a new keyword, I think the chances
> are good that we could get
>
>     x = if e1 then e2 else e3
>

Would this fully short circuit evaluation of e2 if not e1 (and vv)?

--

Emile van Sebille
emile at fenx.com

---------




More information about the Python-list mailing list