summaryrefslogtreecommitdiffstats
path: root/Python/import.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-08-24 20:01:50 (GMT)
committerGitHub <noreply@github.com>2023-08-24 20:01:50 (GMT)
commit26893016a7f204b2e7138fc9ce04525a651c202e (patch)
tree994751eab58657e125b23a426fb5441612ec5ad2 /Python/import.c
parentc3d580b238fb1b5a72d5608ff7905e9ad726d1bb (diff)
downloadcpython-26893016a7f204b2e7138fc9ce04525a651c202e.zip
cpython-26893016a7f204b2e7138fc9ce04525a651c202e.tar.gz
cpython-26893016a7f204b2e7138fc9ce04525a651c202e.tar.bz2
gh-106320: Remove private _PyDict functions (#108449)
Move private functions to the internal C API (pycore_dict.h): * _PyDictView_Intersect() * _PyDictView_New() * _PyDict_ContainsId() * _PyDict_DelItemId() * _PyDict_DelItem_KnownHash() * _PyDict_GetItemIdWithError() * _PyDict_GetItem_KnownHash() * _PyDict_HasSplitTable() * _PyDict_NewPresized() * _PyDict_Next() * _PyDict_Pop() * _PyDict_SetItemId() * _PyDict_SetItem_KnownHash() * _PyDict_SizeOf() No longer export most of these functions. Move also the _PyDictViewObject structure to the internal C API. Move dict_getitem_knownhash() function from _testcapi to the _testinternalcapi extension. Update test_capi.test_dict for this change.
Diffstat (limited to 'Python/import.c')
-rw-r--r--Python/import.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/import.c b/Python/import.c
index 5681deb..48090d0 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -1,6 +1,7 @@
/* Module definition and import implementation */
#include "Python.h"
+#include "pycore_dict.h" // _PyDict_Pop()
#include "pycore_hashtable.h" // _Py_hashtable_new_full()
#include "pycore_import.h" // _PyImport_BootstrapImp()
#include "pycore_initconfig.h" // _PyStatus_OK()