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 rhettinger
Recipients Oren Milman, gvanrossum, rhettinger, serhiy.storchaka
Date 2017-03-18.08:04:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1489824259.27.0.870750135288.issue29834@psf.upfronthosting.co.za>
In-reply-to
Content
Strong -1 on this.  For zero benefit, this breaks everything (within Python and third-party code) that ever relied on the documented behavior , https://docs.python.org/3/c-api/long.html#c.PyLong_AsUnsignedLong .

The cause perfectly fits the definition of an OverflowError:

class OverflowError(ArithmeticError)
 |  Result too large to be represented.

The time to challenge API design decisions is when they are created, not after they've been published and relied upon for over decade.

Also, we really don't everyone who writes cross-platform code and tests to have to catch both exceptions because they don't know which version is being run.  This creates yet another barrier to upgrading Python and as far as I can tell isn't solving any reported user problem.  Instead, it is second-guessing design decisions made long ago.
History
Date User Action Args
2017-03-18 08:04:19rhettingersetrecipients: + rhettinger, gvanrossum, serhiy.storchaka, Oren Milman
2017-03-18 08:04:19rhettingersetmessageid: <1489824259.27.0.870750135288.issue29834@psf.upfronthosting.co.za>
2017-03-18 08:04:19rhettingerlinkissue29834 messages
2017-03-18 08:04:19rhettingercreate