[issue39301] Specification of bitshift on integers should clearly state floor division used

Nick Coghlan report at bugs.python.org
Sun Jan 12 00:12:25 EST 2020


Nick Coghlan <ncoghlan at gmail.com> added the comment:

Aye, adding "floor" to the existing footnote would be the minimal fix. I'm just wondering whether it's also worth stating that this means that positive integers saturate at zero, while negative integers saturate at -1.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39301>
_______________________________________


More information about the Python-bugs-list mailing list