Author serhiy.storchaka
Recipients Oren Milman, serhiy.storchaka
Date 2017-03-17.08:44:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1489740299.73.0.174810615045.issue29834@psf.upfronthosting.co.za>
In-reply-to
Content
OverflowError is raised when Python integer doesn't fit in C integer type due to platform limitations. Different platforms have different limits. But in PyLong_AsUnsignedLong() only the upper limit is platform-depended. Negative integers always are not accepted. PyLong_AsUnsignedLong() is used for values that can be only non-negative. I think that ValueError is more appropriate in this case than OverflowError.
History
Date User Action Args
2017-03-17 08:44:59serhiy.storchakasetrecipients: + serhiy.storchaka, Oren Milman
2017-03-17 08:44:59serhiy.storchakasetmessageid: <1489740299.73.0.174810615045.issue29834@psf.upfronthosting.co.za>
2017-03-17 08:44:59serhiy.storchakalinkissue29834 messages
2017-03-17 08:44:59serhiy.storchakacreate