Armin Rigo <ar...@users.sourceforge.net> added the comment:

I may be wrong, but I believe that the bug requires using the C API (not just 
pure Python code).  This is because Python-level lock objects have their own 
lifetime, and should never be freed while another thread is in 
PyThread_release_lock() with them.

Nevertheless, the example shows that using this C API "correctly" is very hard. 
 Most direct users of the C API could run into the same problem in theory.

----------

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

Reply via email to