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

2013-10-22 Thread Ivan Johansen
Ivan Johansen added the comment: Probably not. I am setting status to closed with resolution fixed. -- resolution: - fixed status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18426

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

2013-07-11 Thread Ivan Johansen
New submission from Ivan Johansen: In Python/importdl.c around line 99 in the function _PyImport_LoadDynamicModule() you can find the code: def = PyModule_GetDef(m); def-m_base.m_init = p; If the module m, which is returned from a newly imported extension, is not created

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

2013-07-11 Thread Ivan Johansen
Ivan Johansen added the comment: If possible it would be nice if any module could be returned from a C extension. Specifically I was trying to subclass module (PyModule_Type) and use that. But an error message is better than a crash. -- ___ Python