Author mark.dickinson
Recipients, mark.dickinson, ncoghlan, pitrou, skrah, vstinner
Date 2014-02-07.17:08:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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:27mark.dickinsonsetrecipients: + mark.dickinson, ncoghlan, pitrou, vstinner, skrah,
2014-02-07 17:08:27mark.dickinsonsetmessageid: <>
2014-02-07 17:08:27mark.dickinsonlinkissue20539 messages
2014-02-07 17:08:27mark.dickinsoncreate