[issue13697] python RLock implementation unsafe with signals
Robert Collins
report at bugs.python.org
Wed Jan 4 04:25:33 CET 2012
Robert Collins <robertc at robertcollins.net> added the comment:
Normally I advocate very strongly for Python implementation of C accelerated modules, but when the two implementations are not equivalent, having a simpler Python one around does not help anyone (not users, other language implementors etc). True reentrancy is possible but quite hard to achieve.
So, FWIW, +1 on just having a C implementation.
The dedicated signal thread sounds useful too - it would ease the issues for folk using other parts of the stdlib, and would in principle permit a pure-python RLock to hang around.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13697>
_______________________________________
More information about the Python-bugs-list
mailing list