Message210448
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 |
|
Date |
User |
Action |
Args |
2014-02-07 10:54:29 | ncoghlan | set | recipients:
+ ncoghlan |
2014-02-07 10:54:29 | ncoghlan | set | messageid: <1391770469.14.0.441115710554.issue20539@psf.upfronthosting.co.za> |
2014-02-07 10:54:29 | ncoghlan | link | issue20539 messages |
2014-02-07 10:54:28 | ncoghlan | create | |
|