summaryrefslogtreecommitdiffstats
path: root/Modules/_sre
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 /Modules/_sre
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 'Modules/_sre')
-rw-r--r--Modules/_sre/sre.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_sre/sre.c b/Modules/_sre/sre.c
index c4e43a0..3872c36 100644
--- a/Modules/_sre/sre.c
+++ b/Modules/_sre/sre.c
@@ -39,6 +39,7 @@ static const char copyright[] =
" SRE 2.2.2 Copyright (c) 1997-2002 by Secret Labs AB ";
#include "Python.h"
+#include "pycore_dict.h" // _PyDict_Next()
#include "pycore_long.h" // _PyLong_GetZero()
#include "pycore_moduleobject.h" // _PyModule_GetState()