[Python-ideas] Inline assignment expression

Carl Johnson cmjohnson.mailinglist at gmail.com
Sun Mar 15 02:57:42 CET 2009


Jervis Whitley wrote:

> so things like
>
>    test() as x == answer
>
> should work and (for example)
>
>    4 * 4 as x == 16 # True

Would "4 * 4 == 16 as x" be equivalent to "(4 * 4 == 16) as x" or "4 *
4 == (16 as x)"?

Either way, I suspect this is dead in the water, but I guess that
issue should be clarified.

-- Carl



More information about the Python-ideas mailing list