[issue46343] Add PyErr_GetActiveException and PyErr_SetActiveException

Andrew Svetlov report at bugs.python.org
Fri Mar 18 08:44:39 EDT 2022


Andrew Svetlov <andrew.svetlov at gmail.com> added the comment:

I have a side question.
generator.throw() and coroutine.throw() have throw(type[, value[, traceback]]) signature.

Is there a plan to update generators somehow to accept the exception value only?
The change can go in line with other exception API changes.

----------
nosy: +asvetlov

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


More information about the Python-bugs-list mailing list