Author ncoghlan
Recipients ncoghlan
Date 2014-02-07.10:54:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1391770469.14.0.441115710554.issue20539@psf.upfronthosting.co.za>
In-reply-to
Content
I believe this is mostly a curiousity (since actually calculating a factorial this big would take an interminable amount of time), but math.factorial can be provoked into throwing OverflowError by a large enough input:

>>> math.factorial(10**19)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OverflowError: Python int too large to convert to C long

>>> math.factorial(1e19)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OverflowError: Python int too large to convert to C long
History
Date User Action Args
2014-02-07 10:54:29ncoghlansetrecipients: + ncoghlan
2014-02-07 10:54:29ncoghlansetmessageid: <1391770469.14.0.441115710554.issue20539@psf.upfronthosting.co.za>
2014-02-07 10:54:29ncoghlanlinkissue20539 messages
2014-02-07 10:54:28ncoghlancreate