mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03: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
|
|
@ -4685,7 +4685,7 @@ static PyObject *
|
|||
get_core_config(PyObject *self, PyObject *Py_UNUSED(args))
|
||||
{
|
||||
PyInterpreterState *interp = _PyInterpreterState_Get();
|
||||
const _PyCoreConfig *config = &interp->core_config;
|
||||
const _PyCoreConfig *config = _PyInterpreterState_GetCoreConfig(interp);
|
||||
return _PyCoreConfig_AsDict(config);
|
||||
}
|
||||
|
||||
|
|
@ -4694,7 +4694,7 @@ static PyObject *
|
|||
get_main_config(PyObject *self, PyObject *Py_UNUSED(args))
|
||||
{
|
||||
PyInterpreterState *interp = _PyInterpreterState_Get();
|
||||
const _PyMainInterpreterConfig *config = &interp->config;
|
||||
const _PyMainInterpreterConfig *config = _PyInterpreterState_GetMainConfig(interp);
|
||||
return _PyMainInterpreterConfig_AsDict(config);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue