]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-90716: bugfixes and more tests for _pylong. (#99073)
authorGregory P. Smith <greg@krypto.org>
Thu, 3 Nov 2022 23:18:38 +0000 (16:18 -0700)
committerGitHub <noreply@github.com>
Thu, 3 Nov 2022 23:18:38 +0000 (16:18 -0700)
commit4c4b5ce2e529a1279cd287e2d2d73ffcb6cf2ead
tree738e223c212b3917afe011e2a8a21f4b78ebb503
parentbee107028922adc55421611b4bf7da14b8a64010
gh-90716: bugfixes and more tests for _pylong. (#99073)

* Properly decref on _pylong import error.
* Improve the error message on _pylong TypeError.
* Fix the assertion error in pydebug builds to be a TypeError.
* Tie the return value comments together.

These are minor followups to issues not caught among the reviewers on
https://github.com/python/cpython/pull/96673.
Lib/test/test_int.py
Objects/longobject.c