STINNER Victor added the comment:

I wrote which seems to fix the 

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 <>
Python-bugs-list mailing list

Reply via email to