STINNER Victor <victor.stin...@haypocalc.com> added the comment:

> Ok, good idea, I will do that. I think that I will write it in the
> function comment, something like: "This function is signal safe".

Done in 6685691dfcbd3644feffcb197491bce3168ff5de (git SHA-1)

While checking the usage of signal safe functions, I found a bug: 
dumpbacktrace_later() signal handler called Py_CLEAR() which is far from being 
signal safe. I tried to replace it be a pending call, but Py_AddPendingCall() 
doesn't look to be signal safe. So I just removed the call. 
cancel_dumpbacktrace_later() is already documented as being required to clear 
the reference to the file.

> >   - within tests.py, ...
> Ok, I will try to find better names.

Done in db99e17dea187bec4248aca9fc81f673d88dec93. I documented methods and 
renamed some of them.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue11393>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to