Evaluation order

Python evaluates expressions from left to right. Notice that while evaluating an assignment, the right-hand side is evaluated before the left-hand side.

In the following lines, expressions will be evaluated in the arithmetic order of their suffixes:

expr1, expr2, expr3, expr4
(expr1, expr2, expr3, expr4)
{expr1: expr2, expr3: expr4}
expr1 + expr2 * (expr3 - expr4)
expr1(expr2, *expr3, **expr4)
expr3, expr4 = expr1, expr2
 

Comment:

"arithmetic order of their suffixes"?

Posted by infogami

A Django site. this page was rendered by a django application in 0.01s 2012-02-12 19:54:32.518104. hosted by webfaction.