[issue20539] math.factorial may throw OverflowError

Mark Dickinson report at bugs.python.org
Fri Feb 7 12:00:11 CET 2014


Mark Dickinson added the comment:

What behaviour would you suggest instead?

Apart from the time, the result would have over 10**20 digits, so would need exabytes of memory to represent.

>>> from math import lgamma, log
>>> lgamma(1e19) / log(10)
1.8565705518096748e+20

----------
nosy: +mark.dickinson

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


More information about the Python-bugs-list mailing list