bpo-46008: Add _PyInterpreterState_Main(). (gh-29978)
PyInterpreterState_Main() is a plain function exposed in the public C-API. For internal usage we can take the more efficient approach in this PR. https://bugs.python.org/issue46008
This commit is contained in:
@@ -1204,7 +1204,7 @@ PyInterpreterState_Head(void)
|
||||
PyInterpreterState *
|
||||
PyInterpreterState_Main(void)
|
||||
{
|
||||
return _PyRuntime.interpreters.main;
|
||||
return _PyInterpreterState_Main();
|
||||
}
|
||||
|
||||
PyInterpreterState *
|
||||
|
||||
Reference in New Issue
Block a user