[issue40545] Expose _PyErr_GetTopmostException

STINNER Victor report at bugs.python.org
Thu May 7 09:50:54 EDT 2020


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

> I would definitely love to have a public API for this.

I'm not sure if it's a good idea. It's kind of semi-internal.

Stephan Behnel and Mark Shannon: What do you think of exposing PyThreadState exception stack (exc_state)? Especially the "top" exception. If I recall correctly, Mark designed it and Stephan "reimplemented" it in Cython.

I also recall a minor issue in greenlet:
https://github.com/python-greenlet/greenlet/pull/132

----------
nosy: +Mark.Shannon, scoder

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


More information about the Python-bugs-list mailing list