mirror of
https://github.com/python/cpython.git
synced 2025-10-21 14:12:27 +00:00
bpo-35886: Make PyInterpreterState an opaque type in the public API. (GH-11731)
Move PyInterpreterState into the "internal" header files.
This commit is contained in:
parent
175421b58c
commit
be3b295838
8 changed files with 133 additions and 106 deletions
|
@ -407,6 +407,17 @@ _PyInterpreterState_IDDecref(PyInterpreterState *interp)
|
|||
}
|
||||
}
|
||||
|
||||
_PyCoreConfig *
|
||||
_PyInterpreterState_GetCoreConfig(PyInterpreterState *interp)
|
||||
{
|
||||
return &interp->core_config;
|
||||
}
|
||||
|
||||
_PyMainInterpreterConfig *
|
||||
_PyInterpreterState_GetMainConfig(PyInterpreterState *interp)
|
||||
{
|
||||
return &interp->config;
|
||||
}
|
||||
|
||||
/* Default implementation for _PyThreadState_GetFrame */
|
||||
static struct _frame *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue