Message289748
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:59 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, Oren Milman |
2017-03-17 08:44:59 | serhiy.storchaka | set | messageid: <1489740299.73.0.174810615045.issue29834@psf.upfronthosting.co.za> |
2017-03-17 08:44:59 | serhiy.storchaka | link | issue29834 messages |
2017-03-17 08:44:59 | serhiy.storchaka | create | |
|