diff options
| author | Victor Stinner <vstinner@python.org> | 2023-08-24 20:01:50 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-24 20:01:50 (GMT) |
| commit | 26893016a7f204b2e7138fc9ce04525a651c202e (patch) | |
| tree | 994751eab58657e125b23a426fb5441612ec5ad2 /Modules/_threadmodule.c | |
| parent | c3d580b238fb1b5a72d5608ff7905e9ad726d1bb (diff) | |
| download | cpython-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/_threadmodule.c')
| -rw-r--r-- | Modules/_threadmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_threadmodule.c b/Modules/_threadmodule.c index 984747c..229abfb 100644 --- a/Modules/_threadmodule.c +++ b/Modules/_threadmodule.c @@ -4,14 +4,14 @@ #include "Python.h" #include "pycore_ceval.h" // _PyEval_MakePendingCalls() +#include "pycore_dict.h" // _PyDict_Pop() #include "pycore_interp.h" // _PyInterpreterState.threads.count #include "pycore_moduleobject.h" // _PyModule_GetState() #include "pycore_pylifecycle.h" #include "pycore_pystate.h" // _PyThreadState_SetCurrent() #include "pycore_weakref.h" // _PyWeakref_GET_REF() -#include <stddef.h> // offsetof() - +#include <stddef.h> // offsetof() #ifdef HAVE_SIGNAL_H # include <signal.h> // SIGINT #endif |
