[issue21422] int << 0: return the number unmodified

R. David Murray report at bugs.python.org
Tue May 13 00:05:50 CEST 2014


R. David Murray added the comment:

Arfrever's advice was misleading...the test would have needed to be assertIsNot(True << 0, 1), but the fact that True is not preserved is not really what we want to test.  What we want to test is that the return value is of type 'int', which is what Victor's test checks.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21422>
_______________________________________


More information about the Python-bugs-list mailing list