diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-06-13 20:41:23 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-13 20:41:23 (GMT) |
commit | 838f26402de82640698c38ea9d2be65c6cf780d6 (patch) | |
tree | b5dfe2fa1c398c93291833fbd7beea911613a4b1 /Include/internal/pycore_pylifecycle.h | |
parent | 3498c642f4e83f3d8e2214654c0fa8e0d51cebe5 (diff) | |
download | cpython-838f26402de82640698c38ea9d2be65c6cf780d6.zip cpython-838f26402de82640698c38ea9d2be65c6cf780d6.tar.gz cpython-838f26402de82640698c38ea9d2be65c6cf780d6.tar.bz2 |
bpo-36710: Pass explicitly tstate in sysmodule.c (GH-14060)
* Replace global var Py_VerboseFlag with interp->config.verbose.
* Add _PyErr_NoMemory(tstate) function.
* Add tstate parameter to _PyEval_SetCoroutineOriginTrackingDepth()
and move the function to the internal API.
* Replace _PySys_InitMain(runtime, interp)
with _PySys_InitMain(runtime, tstate).
Diffstat (limited to 'Include/internal/pycore_pylifecycle.h')
-rw-r--r-- | Include/internal/pycore_pylifecycle.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/internal/pycore_pylifecycle.h b/Include/internal/pycore_pylifecycle.h index 8a692ea..6bfadd4 100644 --- a/Include/internal/pycore_pylifecycle.h +++ b/Include/internal/pycore_pylifecycle.h @@ -45,7 +45,7 @@ extern PyStatus _PySys_Create( extern PyStatus _PySys_SetPreliminaryStderr(PyObject *sysdict); extern int _PySys_InitMain( _PyRuntimeState *runtime, - PyInterpreterState *interp); + PyThreadState *tstate); extern PyStatus _PyImport_Init(PyInterpreterState *interp); extern PyStatus _PyExc_Init(void); extern PyStatus _PyErr_Init(void); |