[issue18426] Crash when extension does not use PyModule_Create()

Amaury Forgeot d'Arc report at bugs.python.org
Thu Jul 11 15:24:34 CEST 2013


Amaury Forgeot d'Arc added the comment:

Returning another kind of module can be dangerous here, because extension modules are handled specially (see _PyImport_FixupExtensionObject),
and it's not obvious what this does to normal modules.

But I agree that _imp.load_dynamic() could be extended to plain modules.
A bit like class/type unification.

----------

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


More information about the Python-bugs-list mailing list