diff options
author | Victor Stinner <vstinner@python.org> | 2023-08-22 18:17:25 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-22 18:17:25 (GMT) |
commit | 615f6e946db6d7eae66b8de9a75a6c58a84516a6 (patch) | |
tree | d94d9365566defdedf9f2cf0deffa8f53b6ae587 /Python/codecs.c | |
parent | 0cb0c238d520a8718e313b52cffc356a5a7561bf (diff) | |
download | cpython-615f6e946db6d7eae66b8de9a75a6c58a84516a6.zip cpython-615f6e946db6d7eae66b8de9a75a6c58a84516a6.tar.gz cpython-615f6e946db6d7eae66b8de9a75a6c58a84516a6.tar.bz2 |
gh-106320: Remove _PyDict_GetItemStringWithError() function (#108313)
Remove private _PyDict_GetItemStringWithError() function of the
public C API: the new PyDict_GetItemStringRef() can be used instead.
* Move private _PyDict_GetItemStringWithError() to the internal C API.
* _testcapi get_code_extra_index() uses PyDict_GetItemStringRef().
Avoid using private functions in _testcapi which tests the public C
API.
Diffstat (limited to 'Python/codecs.c')
-rw-r--r-- | Python/codecs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/codecs.c b/Python/codecs.c index 4e47ff9..3c41851 100644 --- a/Python/codecs.c +++ b/Python/codecs.c @@ -10,6 +10,7 @@ Copyright (c) Corporation for National Research Initiatives. #include "Python.h" #include "pycore_call.h" // _PyObject_CallNoArgs() +#include "pycore_dict.h" // _PyDict_GetItemStringWithError() #include "pycore_interp.h" // PyInterpreterState.codec_search_path #include "pycore_pyerrors.h" // _PyErr_FormatNote() #include "pycore_pystate.h" // _PyInterpreterState_GET() |