Message210448
| 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: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 |
|