[Python-Dev] more pyref: comparison precedence

Fredrik Lundh fredrik at pythonware.com
Mon May 1 23:41:54 CEST 2006

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 "<, <=, >, >=, <>, !=, ==":


but the comparisions chapter


says that they all have the same priority.  which one is right ?


More information about the Python-Dev mailing list