Skip to content

bpo-36710: Pass explicitly tstate in sysmodule.c #14060

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 13, 2019
Merged

bpo-36710: Pass explicitly tstate in sysmodule.c #14060

merged 2 commits into from
Jun 13, 2019

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Jun 13, 2019

  • 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)

https://bugs.python.org/issue36710

* 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)
@vstinner vstinner merged commit 838f264 into python:master Jun 13, 2019
@vstinner vstinner deleted the sys_tstate branch June 13, 2019 20:41
lisroach pushed a commit to lisroach/cpython that referenced this pull request Sep 10, 2019
* 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).
DinoV pushed a commit to DinoV/cpython that referenced this pull request Jan 14, 2020
* 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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants