STINNER Victor added the comment:

I wrote https://github.com/python/cpython/pull/3029 which seems to fix the 
issue.

I don't know importlib well enough to understand why we need a weak reference 
to a lock.

My PR adds a second lock per module lock (!) to be able to wait until 
_module_locks[name] is deleted when a thread detects that _module_locks[name] 
exists and the associated lock was destroyed.

----------

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

Reply via email to