Message169217
| 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). |
|