[issue4592] Embedding example does not add created module
Amaury Forgeot d'Arc
report at bugs.python.org
Wed Dec 10 00:24:22 CET 2008
Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:
See attached documentation patch.
Instead of a direct call to PyModule_Create(), the main function must
use
PyImport_AppendInittab("emb", &PyInit_emb);
Note that the same line also works for all 2.x versions.
I'll try to add an item to howto/cporting.rst.
----------
keywords: +needs review, patch
Added file: http://bugs.python.org/file12310/embedding_example.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4592>
_______________________________________
More information about the Python-bugs-list
mailing list