]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42161: Remove private _PyLong_Zero and _PyLong_One (GH-23003)
authorVictor Stinner <vstinner@python.org>
Tue, 27 Oct 2020 20:34:33 +0000 (21:34 +0100)
committerGitHub <noreply@github.com>
Tue, 27 Oct 2020 20:34:33 +0000 (21:34 +0100)
commitc310185c081110741fae914c06c7aaf673ad3d0d
treead2e40e44a63818789a06ee92ff79ed603693e22
parent0564aafb71a153dd0aca4b9266dfae9336a4f2cb
bpo-42161: Remove private _PyLong_Zero and _PyLong_One (GH-23003)

Use PyLong_FromLong(0) and PyLong_FromLong(1) of the public C API
instead. For Python internals, _PyLong_GetZero() and _PyLong_GetOne()
of pycore_long.h can be used.
Include/longobject.h
Objects/longobject.c
Tools/c-analyzer/TODO