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 <>
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.
Date User Action Args
2017-03-17 08:44:59serhiy.storchakasetrecipients: + serhiy.storchaka, Oren Milman
2017-03-17 08:44:59serhiy.storchakasetmessageid: <>
2017-03-17 08:44:59serhiy.storchakalinkissue29834 messages
2017-03-17 08:44:59serhiy.storchakacreate