[issue4612] PyModule_Create() doesn't add/import module

Brett Cannon report at bugs.python.org
Tue Dec 9 19:35:06 CET 2008


Brett Cannon <brett at python.org> added the comment:

Are you returning the module in your extension's init function? The
import machinery takes the returned module from the init function and
adds it to sys.modules for you.

----------
nosy: +brett.cannon

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


More information about the Python-bugs-list mailing list