]> granicus.if.org Git - python/commit
bpo-36710: Pass explicitly tstate in sysmodule.c (GH-14060)
authorVictor Stinner <vstinner@redhat.com>
Thu, 13 Jun 2019 20:41:23 +0000 (22:41 +0200)
committerGitHub <noreply@github.com>
Thu, 13 Jun 2019 20:41:23 +0000 (22:41 +0200)
commit838f26402de82640698c38ea9d2be65c6cf780d6
treeb5dfe2fa1c398c93291833fbd7beea911613a4b1
parent3498c642f4e83f3d8e2214654c0fa8e0d51cebe5
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).
Include/ceval.h
Include/internal/pycore_ceval.h
Include/internal/pycore_pyerrors.h
Include/internal/pycore_pylifecycle.h
Python/ceval.c
Python/errors.c
Python/pylifecycle.c
Python/sysmodule.c