why no ++?

Markus Schaber markus at schabi.de
Sun Aug 19 13:34:07 EDT 2001


Hi,

Alex Martelli <aleaxit at yahoo.com> schrub:

>> Considering your proposed example, can you state with assurance
>> exactly what order things are done, including side effects?
> 
> Sure -- Python guarantees left-to-right behavior of this statement.
> First wower is called, then y.a is assigned, then b,c,d, then x.e, in
> this
> order.  But of course it wouldn't be wise to rely on this!-)

It is even guaranteed that b,c,d is assignet left to right.

That's at least what I read out of the doc, I haven't tested the 
implementation :-)

-- 
1) Customers cause problems.
2) Marketing is trying to create more customers.
Therefore:
3) Marketing is evil.  (Grand Edwards in comp.lang.python)



More information about the Python-list mailing list