]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42161: Add _PyLong_GetZero() and _PyLong_GetOne() (GH-22993)
authorVictor Stinner <vstinner@python.org>
Mon, 26 Oct 2020 23:00:03 +0000 (00:00 +0100)
committerGitHub <noreply@github.com>
Mon, 26 Oct 2020 23:00:03 +0000 (00:00 +0100)
commit8e3b9f92835654943bb59d9658bb52e1b0f40a22
treed22c0d39d03dcfc082dc01b8364cb6e5fe850fef
parentbca701403253379409dece03053dbd739c0bd059
bpo-42161: Add _PyLong_GetZero() and _PyLong_GetOne() (GH-22993)

Add _PyLong_GetZero() and _PyLong_GetOne() functions and a new
internal pycore_long.h header file.

Python cannot be built without small integer singletons anymore.
Include/internal/pycore_interp.h
Include/internal/pycore_long.h [new file with mode: 0644]
Makefile.pre.in
Objects/longobject.c
PCbuild/pythoncore.vcxproj
PCbuild/pythoncore.vcxproj.filters