STINNER Victor <vstin...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue35370>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to