Mika Eloranta added the comment:

OK, I see... "0xfand 1" is ambiguous "(0xfa)nd 1" vs. "(0xf)and 1".

So, while a bit weird, the behavior is consistent:

>>> 123not in [], 0xfnot in [], 0xfor 1, 0xafor 1, 0xfin []
(True, True, 15, 175, False)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21979>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to