[issue16500] Allow registering at-fork handlers

Antoine Pitrou report at bugs.python.org
Mon May 22 09:49:08 EDT 2017


Antoine Pitrou added the comment:

I don't think exiting would be a good idea at all.  I'm not sure about emitting a warning: the problem is that the people seeing the warning (plain users) can't do anything about it; worse, they probably will not even understand what it is about, and will get confused.

The package maintainer should see a deprecation warning when compiling code using PyOS_AfterFork() (thanks to the Py_DEPRECATED attribute).

Of course, I'll also update the docs to add a deprecation once the design is settled.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16500>
_______________________________________


More information about the Python-bugs-list mailing list