[issue20539] math.factorial may throw OverflowError

Stefan Krah report at bugs.python.org
Fri Feb 7 12:40:26 CET 2014


Stefan Krah added the comment:

OverflowError seems like a good choice if only values in the range
of a C long are accepted.  ValueError would perhaps be more intuitive,
since the user normally only cares about the accepted range of
input values rather than the internal details.

----------
nosy: +skrah

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


More information about the Python-bugs-list mailing list