Simon Cross <hodges...@gmail.com> added the comment:

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.

----------
nosy: +hodgestar
Added file: http://bugs.python.org/file19655/check-import-machinery-only.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue4236>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to