]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-106320: Remove _PyDict_GetItemStringWithError() function (#108313)
authorVictor Stinner <vstinner@python.org>
Tue, 22 Aug 2023 18:17:25 +0000 (20:17 +0200)
committerGitHub <noreply@github.com>
Tue, 22 Aug 2023 18:17:25 +0000 (18:17 +0000)
commit615f6e946db6d7eae66b8de9a75a6c58a84516a6
treed94d9365566defdedf9f2cf0deffa8f53b6ae587
parent0cb0c238d520a8718e313b52cffc356a5a7561bf
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.
Include/cpython/dictobject.h
Include/internal/pycore_dict.h
Modules/_testcapi/code.c
Objects/structseq.c
Python/codecs.c
Python/import.c
Python/initconfig.c
Python/pythonrun.c