[issue14247] "in" operator doesn't return boolean
Georg Brandl
report at bugs.python.org
Sat Mar 10 19:11:07 CET 2012
Georg Brandl <georg at python.org> added the comment:
Chaining comparison operators inserts implicit "and" conditions:
a OP b OP c OP d
is equivalent to
(a OP b) and (b OP c) and (c OP d)
This is most useful with ==, <, <= and so forth, but "in" and "is" also count as comparison ops and have the same precedence.
----------
nosy: +georg.brandl
resolution: -> invalid
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14247>
_______________________________________
More information about the Python-bugs-list
mailing list