Message210496
Thinking about it, `ValueError` seems like the right exception type: nothing's actually overflowing, because we haven't even tried to do any computation. This is just a limitation of what `math.factorial` is prepared to accept as input (and perhaps that limitation should be documented).
Here's a patch. Bikeshedding about the exception type and the exception message is welcome. |
|
Date |
User |
Action |
Args |
2014-02-07 17:08:27 | mark.dickinson | set | recipients:
+ mark.dickinson, ncoghlan, pitrou, vstinner, skrah, gdr@garethrees.org |
2014-02-07 17:08:27 | mark.dickinson | set | messageid: <1391792907.17.0.0181454947372.issue20539@psf.upfronthosting.co.za> |
2014-02-07 17:08:27 | mark.dickinson | link | issue20539 messages |
2014-02-07 17:08:27 | mark.dickinson | create | |
|