mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +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
|
@ -315,7 +315,7 @@ dump_config_impl(void)
|
|||
|
||||
/* core config */
|
||||
PyInterpreterState *interp = _PyInterpreterState_Get();
|
||||
const _PyCoreConfig *core_config = &interp->core_config;
|
||||
const _PyCoreConfig *core_config = _PyInterpreterState_GetCoreConfig(interp);
|
||||
dict = _PyCoreConfig_AsDict(core_config);
|
||||
if (dict == NULL) {
|
||||
goto error;
|
||||
|
@ -326,7 +326,7 @@ dump_config_impl(void)
|
|||
Py_CLEAR(dict);
|
||||
|
||||
/* main config */
|
||||
const _PyMainInterpreterConfig *main_config = &interp->config;
|
||||
const _PyMainInterpreterConfig *main_config = _PyInterpreterState_GetMainConfig(interp);
|
||||
dict = _PyMainInterpreterConfig_AsDict(main_config);
|
||||
if (dict == NULL) {
|
||||
goto error;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue