mirror of
https://github.com/python/cpython.git
synced 2025-07-12 22:05:16 +00:00
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.
This commit is contained in:
parent
0cb0c238d5
commit
615f6e946d
8 changed files with 12 additions and 6 deletions
|
@ -15,6 +15,7 @@
|
|||
#include "pycore_ast.h" // PyAST_mod2obj
|
||||
#include "pycore_ceval.h" // _Py_EnterRecursiveCall
|
||||
#include "pycore_compile.h" // _PyAST_Compile()
|
||||
#include "pycore_dict.h" // _PyDict_GetItemStringWithError()
|
||||
#include "pycore_interp.h" // PyInterpreterState.importlib
|
||||
#include "pycore_object.h" // _PyDebug_PrintTotalRefs()
|
||||
#include "pycore_parser.h" // _PyParser_ASTFromString()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue