Amaury Forgeot d'Arc added the comment: This is one case of chained comparisons: http://docs.python.org/3/reference/expressions.html#not-in
"x <= y <= z" is equivalent to "(x <= y) and (y <= z)" "x in y == z" is equivalent to "(x in y) and (y == z)" There is a jump if the 'in' expression is false, because 'and' should short-circuit the second comparison. ---------- nosy: +amaury.forgeotdarc resolution: -> invalid status: open -> pending _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18208> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com