]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39542: Make _Py_NewReference() opaque in C API (GH-18346)
authorVictor Stinner <vstinner@python.org>
Wed, 5 Feb 2020 00:11:10 +0000 (01:11 +0100)
committerGitHub <noreply@github.com>
Wed, 5 Feb 2020 00:11:10 +0000 (01:11 +0100)
commit40e547dfbb9052ca0c667b242f6825ed1c23c195
treeaebb9f8925156ed5a97bbd0daddb43e4c03e2839
parent2545fa87628b4caca519da8aeb0eeef368b9dc0d
bpo-39542: Make _Py_NewReference() opaque in C API (GH-18346)

_Py_NewReference() becomes a regular opaque function, rather than a
static inline function in the C API (object.h), to better hide
implementation details.

Move _Py_tracemalloc_config from public pymem.h to internal
pycore_pymem.h header.

Make _Py_AddToAllObjects() private.
Include/internal/pycore_pymem.h
Include/object.h
Include/pymem.h
Modules/_tracemalloc.c
Objects/object.c