This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients brett.cannon, ncoghlan, serhiy.storchaka, vstinner
Date 2017-08-08.23:43:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1502235837.52.0.532337378443.issue31070@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2017-08-08 23:43:57vstinnersetrecipients: + vstinner, brett.cannon, ncoghlan, serhiy.storchaka
2017-08-08 23:43:57vstinnersetmessageid: <1502235837.52.0.532337378443.issue31070@psf.upfronthosting.co.za>
2017-08-08 23:43:57vstinnerlinkissue31070 messages
2017-08-08 23:43:57vstinnercreate