[issue21419] Use calloc() instead of malloc() for int << int (lshift)

STINNER Victor report at bugs.python.org
Mon May 12 22:48:01 CEST 2014


STINNER Victor added the comment:

The optimization of 2**n looks to be only useful for very large value of n, result larger than 1 MB. This use case is very rare, and you should probably use another library (GMP, numpy, or something else) for such large numbers. I close the issue.

----------
resolution:  -> rejected
status: open -> closed

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


More information about the Python-bugs-list mailing list