[issue8259] left shift operator doesn't accepts long as second argument
owirj
report at bugs.python.org
Mon Mar 29 17:26:26 CEST 2010
owirj <cemu at mail.ru> added the comment:
Antoine Pitrou:
The reason you get an OverflowError in 32-bit mode is that 2**31 is too large to be represented as a (signed) C long, rather than unsigned.
I understand that, but after reading documentation, was expecting it to convert second argument to long type, which is not concerned with architecture dependant implementation of int.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8259>
_______________________________________
More information about the Python-bugs-list
mailing list