one last one for tonight; the operator precedence summary says that
in and not in has lower precedence than is and is not, which
has lower precedence than , =, , =, , !=, ==:
http://docs.python.org/ref/summary.html
but the comparisions chapter
http://docs.python.org/ref/comparisons.html
They're all the same priority.
On 5/1/06, Fredrik Lundh [EMAIL PROTECTED] wrote:
one last one for tonight; the operator precedence summary says that
in and not in has lower precedence than is and is not, which
has lower precedence than , =, , =, , !=, ==:
Guido van Rossum wrote:
They're all the same priority.
yet another description that is obvious only if you already know what
it says, in other words:
Operators in the same box have the same precedence. /.../
Operators in the same box group left to right (except for com-
parisons,