This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Oren Milman
Recipients Oren Milman, serhiy.storchaka
Date 2017-03-17.09:46:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1489743990.79.0.645658399139.issue29834@psf.upfronthosting.co.za>
In-reply-to
Content
note that there are functions that rely on the fact that
PyLong_AsUnsignedLong currently raises OverflowError for both cases.

such functions would probably use
PyErr_ExceptionMatches(PyExc_OverflowError)
or something like
PyErr_GivenExceptionMatches(err, PyExc_OverflowError)

_Py_Uid_Converter() (in Modules/posixmodule.c) is an example, but
ISTM there aren't many such functions.

however, this is only in cpython's C code. I don't know how many
functions in cpython's python code rely on this.

also, maybe there is a lot of user code that rely on this?
History
Date User Action Args
2017-03-17 09:46:30Oren Milmansetrecipients: + Oren Milman, serhiy.storchaka
2017-03-17 09:46:30Oren Milmansetmessageid: <1489743990.79.0.645658399139.issue29834@psf.upfronthosting.co.za>
2017-03-17 09:46:30Oren Milmanlinkissue29834 messages
2017-03-17 09:46:30Oren Milmancreate