[issue29816] Get rid of C limitation for shift count in right shift

Serhiy Storchaka report at bugs.python.org
Wed Mar 15 16:30:52 EDT 2017


Serhiy Storchaka added the comment:

Unfortunately it is hard to totally avoid OverflowError in right shift. Righ shift of huge positive value can get non-zero result even if shift count is larger than PY_SSIZE_T_MAX. PR 680 just decreases the opportunity of getting a OverflowError.

----------
stage: needs patch -> patch review

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


More information about the Python-bugs-list mailing list