mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +00:00
gh-106320: Remove _PyInterpreterState_Get() alias (#106321)
Replace calls to the (removed) slow _PyInterpreterState_Get() with fast inlined _PyInterpreterState_GET() function.
This commit is contained in:
parent
0530f4f646
commit
18b1fdebe0
11 changed files with 29 additions and 22 deletions
|
@ -1123,7 +1123,7 @@ check_multi_interp_extensions(PyInterpreterState *interp)
|
|||
int
|
||||
_PyImport_CheckSubinterpIncompatibleExtensionAllowed(const char *name)
|
||||
{
|
||||
PyInterpreterState *interp = _PyInterpreterState_Get();
|
||||
PyInterpreterState *interp = _PyInterpreterState_GET();
|
||||
if (check_multi_interp_extensions(interp)) {
|
||||
assert(!_Py_IsMainInterpreter(interp));
|
||||
PyErr_Format(PyExc_ImportError,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue