python and macros (again) [Was: python3: 'where' keyword]

Fredrik Lundh fredrik at
Thu Jan 13 18:30:50 EST 2005

Bengt Richter wrote:

> Hm, that makes me wonder, is there an intermediate "returning of value" in
>    x = y = z = 123
> ?

no.  that statement evaluates the expression (123 in this case), and assigns
the result (the integer object 123) to each target  (x, y, z), in order.  or to
quote the language reference:

    An assignment statement evaluates the expression list (remember
    that this can be a single expression or a comma-separated list, the
    latter yielding a tuple) and assigns the single resulting object to each
    of the target lists, from left to right.


More information about the Python-list mailing list