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.

</F> 



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

Reply via email to