diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2019-02-23 18:35:52 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-23 18:35:52 (GMT) |
commit | be3b295838547bba267eb08434b418ef0df87ee0 (patch) | |
tree | 8daa92ecd7088d6ace08833f64ba2251be9b310f /Python/pystate.c | |
parent | 175421b58cc97a2555e474f479f30a6c5d2250b0 (diff) | |
download | cpython-be3b295838547bba267eb08434b418ef0df87ee0.zip cpython-be3b295838547bba267eb08434b418ef0df87ee0.tar.gz cpython-be3b295838547bba267eb08434b418ef0df87ee0.tar.bz2 |
bpo-35886: Make PyInterpreterState an opaque type in the public API. (GH-11731)
Move PyInterpreterState into the "internal" header files.
Diffstat (limited to 'Python/pystate.c')
-rw-r--r-- | Python/pystate.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Python/pystate.c b/Python/pystate.c index acb672b..cdb8813 100644 --- a/Python/pystate.c +++ b/Python/pystate.c @@ -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 * |