Marcin 'Qrczak' Kowalczyk
qrczak at knm.org.pl
Fri Jun 1 22:18:49 CEST 2001
1 Jun 2001 02:32:10 GMT, jcm <grumble at usa.net> pisze:
>> Python's evaluation is left to right, Hence
> The + operator has this behavior (left associativity).
> The ** operator, on the other hand, is right-associative.
Associativity of an operation (the property that a@(b at c) = (a at b)@c),
syntactic associativity (is a at b@c interpreted as a@(b at c) or (a at b)@c)
and the order of evaluation (is a or b evaluated earlier in a at b)
are three different things. Don't confuse them.
__("< Marcin Kowalczyk * qrczak at knm.org.pl http://qrczak.ids.net.pl/
^^ SYGNATURA ZASTĘPCZA
More information about the Python-list