[issue20260] Argument Clinic: add unsigned integers converters
Stefan Krah
report at bugs.python.org
Wed Jan 15 23:12:20 CET 2014
Stefan Krah added the comment:
I think we cannot change PyLong_AsUnsignedLong() without a deprecation period,
if at all. That leaves the option of changing the converters.
My preference is to raise either OverflowError or ValueError for *both*
out-of-range conditions.
People may me used to OverflowError by now -- the usage in PyLong_AsUnsignedLong()
dates back to very early revisions -- but there are equally good reasons to use
ValueError.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20260>
_______________________________________
More information about the Python-bugs-list
mailing list