[issue27870] Left shift of zero allocates memory

Alex Groce report at bugs.python.org
Fri Aug 26 16:37:28 EDT 2016


Alex Groce added the comment:

(to clarify:

0 << N

allocates memory (which can fail, raising MemoryError) based on N.  GMP simply returns 0 for any N.

----------

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


More information about the Python-bugs-list mailing list