summaryrefslogtreecommitdiffstats
path: root/Modules/_weakref.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-07-24 14:02:03 (GMT)
committerGitHub <noreply@github.com>2023-07-24 14:02:03 (GMT)
commitfd66baf34a73871c651326a41886240bf6f986d7 (patch)
treec59b1d1e1987f1c1b0c4e0a2831deebf0eab0870 /Modules/_weakref.c
parent0a9b339363a59be1249189c767ed6f46fd71e1c7 (diff)
downloadcpython-fd66baf34a73871c651326a41886240bf6f986d7.zip
cpython-fd66baf34a73871c651326a41886240bf6f986d7.tar.gz
cpython-fd66baf34a73871c651326a41886240bf6f986d7.tar.bz2
gh-106320: Remove private _PyDict C API (#107145)
Move private _PyDict functions to the internal C API (pycore_dict.h): * _PyDict_Contains_KnownHash() * _PyDict_DebugMallocStats() * _PyDict_DelItemIf() * _PyDict_GetItemWithError() * _PyDict_HasOnlyStringKeys() * _PyDict_MaybeUntrack() * _PyDict_MergeEx() No longer export these functions.
Diffstat (limited to 'Modules/_weakref.c')
-rw-r--r--Modules/_weakref.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_weakref.c b/Modules/_weakref.c
index b5d80cb..dcb2984 100644
--- a/Modules/_weakref.c
+++ b/Modules/_weakref.c
@@ -1,4 +1,5 @@
#include "Python.h"
+#include "pycore_dict.h" // _PyDict_DelItemIf()
#include "pycore_object.h" // _PyObject_GET_WEAKREFS_LISTPTR
#include "pycore_weakref.h" // _PyWeakref_IS_DEAD()