operator precedence

Fredrik Lundh fredrik at effbot.org
Thu Dec 7 12:47:01 EST 2000


b_wiedermann at my-deja.com wrote:
> I am looking for a list of operator precedence that has been updated to
> include information for Python 2.0. Also, I am looking for association
> information. Should we assume that associativity is always from left to
> right, except for comparison operators?

as far as I can tell,

    http://www.python.org/doc/current/ref/summary.html

is up to date.

> What about assignment operators; they do not appear in the language
> reference at

there are no assignment operators in Python.  assignment is a
statement.

what looks like C's assignment operators are known as "augmented
assignment statements", and are documented here:

    http://www.python.org/doc/current/ref/augassign.html

</F>





More information about the Python-list mailing list