Amaury Forgeot d'Arc <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4592>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to