Skip to content

bpo-35370: Add _PyEval_SetTrace() function #18975

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
Mar 13, 2020
Merged

bpo-35370: Add _PyEval_SetTrace() function #18975

merged 2 commits into from
Mar 13, 2020

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Mar 13, 2020

  • sys.settrace(), sys.setprofile() and _lsprof.Profiler.enable() now
    properly report PySys_Audit() error if "sys.setprofile" or
    "sys.settrace" audit event is denied.
  • Add _PyEval_SetProfile() and _PyEval_SetTrace() function: similar
    to PyEval_SetProfile() and PyEval_SetTrace() but take a tstate
    parameter and return -1 on error.
  • Add _PyObject_FastCallTstate() function.

https://bugs.python.org/issue35370

* sys.settrace(), sys.setprofile() and _lsprof.Profiler.enable() now
  properly report PySys_Audit() error if "sys.setprofile" or
  "sys.settrace" audit event is denied.
* Add _PyEval_SetProfile() and _PyEval_SetTrace() function: similar
  to PyEval_SetProfile() and PyEval_SetTrace() but take a tstate
  parameter and return -1 on error.
* Add _PyObject_FastCallTstate() function.
@vstinner vstinner merged commit 309d7cc into python:master Mar 13, 2020
@vstinner vstinner deleted the eval_settrace_tstate branch March 13, 2020 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants