[issue35370] Add _PyEval_SetTrace(tstate, func, arg) function

STINNER Victor report at bugs.python.org
Fri Mar 13 11:48:38 EDT 2020


STINNER Victor <vstinner at python.org> added the comment:

> PyEval_SetTrace() and PyEval_SetProfile() function have no return value but can raise an exception. I'm not comfortable about these functions. Maybe one option would be to call PyErr_WriteUnraisable() on PySys_Audit() error. It might be better than "leaking" an exception which is unexpected to PyEval_SetTrace() and PyEval_SetProfile() callers.

I wrote PR 18977 to implement this idea.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35370>
_______________________________________


More information about the Python-bugs-list mailing list