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 <rep...@bugs.python.org> <http://bugs.python.org/issue20260> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com