diff options
author | Victor Stinner <vstinner@python.org> | 2023-07-23 20:09:08 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-23 20:09:08 (GMT) |
commit | 0d6dfd68d22762c115d202515fe3310bfb42e327 (patch) | |
tree | d20012091337f17a311bcc2309b3b03eedc94377 /Objects/dictobject.c | |
parent | 0810b0c435415c09c1907c6f418585bed558a2c1 (diff) | |
download | cpython-0d6dfd68d22762c115d202515fe3310bfb42e327.zip cpython-0d6dfd68d22762c115d202515fe3310bfb42e327.tar.gz cpython-0d6dfd68d22762c115d202515fe3310bfb42e327.tar.bz2 |
gh-106320: Remove private _PyObject C API (#107147)
Move private debug _PyObject functions to the internal C API
(pycore_object.h):
* _PyDebugAllocatorStats()
* _PyObject_CheckConsistency()
* _PyObject_DebugTypeStats()
* _PyObject_IsFreed()
No longer export most of these functions, except of
_PyObject_IsFreed().
Move test functions using _PyObject_IsFreed() from _testcapi to
_testinternalcapi. check_pyobject_is_freed() test no longer catch
_testcapi.error: the tested function cannot raise _testcapi.error.
Diffstat (limited to 'Objects/dictobject.c')
-rw-r--r-- | Objects/dictobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c index 26e2dc3..41ae1fc 100644 --- a/Objects/dictobject.c +++ b/Objects/dictobject.c @@ -118,7 +118,7 @@ As a consequence of this, split keys have a maximum size of 16. #include "pycore_code.h" // stats #include "pycore_dict.h" // PyDictKeysObject #include "pycore_gc.h" // _PyObject_GC_IS_TRACKED() -#include "pycore_object.h" // _PyObject_GC_TRACK() +#include "pycore_object.h" // _PyObject_GC_TRACK(), _PyDebugAllocatorStats() #include "pycore_pyerrors.h" // _PyErr_GetRaisedException() #include "pycore_pystate.h" // _PyThreadState_GET() #include "pycore_setobject.h" // _PySet_NextEntry() |