STINNER Victor added the comment:
I wrote https://github.com/python/cpython/pull/3029 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 <rep...@bugs.python.org>
Python-bugs-list mailing list