[issue1195571] simple callback system for Py_FatalError
Amaury Forgeot d'Arc
report at bugs.python.org
Sat Oct 2 00:00:41 CEST 2010
Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:
Here is a new patch; I lifted the pre-Py_Initialize() restriction, because it seems to me that a wxPython application, for example, could use it.
A wxPython application is not embedded, but it already often redirects stdout and even installs a segfault handler.
I also made Py_SetFatalHook() return the previous hook; it could be useful to set a function temporarily, even if this is not thread safe.
----------
stage: unit test needed -> patch review
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1195571>
_______________________________________
More information about the Python-bugs-list
mailing list