[issue16392] import crashes on circular imports in ext modules

Antoine Pitrou report at bugs.python.org
Sat Nov 3 23:01:06 CET 2012


Antoine Pitrou added the comment:

Note that Py_InitModule4 in Python 2 did add the module object to sys.modules (by calling PyImport_AddModule) before returning, but PyModule_Create in Python 3 doesn't.

(PEP 3121 doesn't seem to mention PyModule_Create at all, strangely; it seems the PEP doesn't follow the implementation)

----------
nosy: +loewis
versions: +Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16392>
_______________________________________


More information about the Python-bugs-list mailing list