[issue20539] math.factorial may throw OverflowError
Mark Dickinson
report at bugs.python.org
Fri Feb 7 12:13:46 CET 2014
Mark Dickinson added the comment:
> Some others Python functions like str * int raises a MemoryError on overflow.
I have to say that that's always seemed wrong to me: IMO MemoryError should only be raised when we've really run out of memory, or perhaps where the amount of memory we're about to need exceeds all possible limits (e.g., more than 2**63 bytes on a 64-bit system).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20539>
_______________________________________
More information about the Python-bugs-list
mailing list