Message121615
| Author |
hodgestar |
| Recipients |
amaury.forgeotdarc, barry, belopolsky, brett.cannon, christian.heimes, hodgestar, loewis, vstinner |
| Date |
2010年11月20日.11:34:28 |
| SpamBayes Score |
0.0025671062 |
| Marked as misclassified |
No |
| Message-id |
<1290252872.22.0.347836177301.issue4236@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I'm attaching a patch to relax the check in PyModule_Create2 as suggested by the Amaury (http://bugs.python.org/issue4236#msg75409).
The patch uses "PyThreadState_Get()->interp->modules == NULL" to determine whether the import machinery has been cleaned up yet.
The test suite still appears to pass. |
|