Serhiy Storchaka added the comment:

Thank you Oren, but your code doesn't work when PY_SSIZE_T_MAX < b < 
PY_SSIZE_T_MAX * PyLong_SHIFT and a > 2 ** b. When you drop wordshift and left 
only loshift_d you should drop lower wordshift digits in a.

The code for left shift would be even more complex.

----------

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

Reply via email to