Stefan Krah added the comment: I slightly favor the ValueError patch because there is only a single exception to catch. PyLong_AsUnsignedLong() also raises OverflowError for both positive values that are too large and for negative values.
Perhaps the error message could contain the actual range of allowed values, especially since LONG_MAX differs across platforms. The drawback is that "outrageously" would have to go then. :) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20539> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com