]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-143050: Add helper _PyLong_InitTag() (#147956)
authorSergey B Kirpichev <skirpichev@gmail.com>
Wed, 1 Apr 2026 21:42:10 +0000 (00:42 +0300)
committerGitHub <noreply@github.com>
Wed, 1 Apr 2026 21:42:10 +0000 (21:42 +0000)
commitb456cb25a98985bdbce6987a37f01da4e2ed478e
tree8df658066844a57ff59babe12cfd4b169daee1d9
parent4810beddbfc71fd8743bc89c5d07edef8877d754
gh-143050: Add helper _PyLong_InitTag() (#147956)

With this we can assume, that _PyLong_SetSignAndDigitCount() and
_PyLong_SetDigitCount() operate on non-immortal integers.

Co-authored-by: Victor Stinner <vstinner@python.org>
Include/internal/pycore_long.h
Objects/longobject.c