Irit Katriel <iritkatr...@gmail.com> added the comment:
Zac, the documentation for PyErr_Print [1] states that it clears the error indicator. This is akin to handling the exception. Was this your intention? If you want to print the exception without clearing it, I think you would probably need to call PyErr_Fetch, then PyErr_Display, then PyErr_Restore. [1] https://docs.python.org/3/c-api/exceptions.html#c.PyErr_PrintEx ---------- nosy: +iritkatriel _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue45033> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com