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 pitrou
Recipients brett.cannon, christian.heimes, eric.snow, georg.brandl, jkloth, ncoghlan, pitrou, skrah, vstinner
Date 2012-08-27.20:51:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1346100693.27.0.263254020591.issue15781@psf.upfronthosting.co.za>
In-reply-to
Content
Ok, I can now reproduce with setswitchinterval(). Here is a patch. There was a race between putting the new module in sys.modules and setting its __initializing__ attribute, so now __initializing__ is set before putting the module in sys.modules.

Also, there was another race when retrieving a module lock from the locks dict (the weakref could be destroyed between the __contains__ test and the actual fetch).
History
Date User Action Args
2012-08-27 20:51:33pitrousetrecipients: + pitrou, brett.cannon, georg.brandl, ncoghlan, vstinner, christian.heimes, jkloth, skrah, eric.snow
2012-08-27 20:51:33pitrousetmessageid: <1346100693.27.0.263254020591.issue15781@psf.upfronthosting.co.za>
2012-08-27 20:51:32pitroulinkissue15781 messages
2012-08-27 20:51:32pitroucreate