Brett Cannon [EMAIL PROTECTED] added the comment:
The example is broken.
And the example under discussion is
http://docs.python.org/dev/3.0/extending/embedding.html#extending-embedded-python
.
I have changed the title to be more descriptive and assigned to Martin
to find out what the proper
Martin v. Löwis [EMAIL PROTECTED] added the comment:
The proper way of extending embedded Python can be seen in
Demo/embed/demo.c.
I can't contribute to the documentation, so I'm unassigning myself.
--
assignee: loewis -
___
Python tracker [EMAIL
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
Georg Brandl [EMAIL PROTECTED] added the comment:
Applied in r67682.
Please don't add things directly to cporting.rst, rather amend the
PortingExtensionModulesToPy3k wiki page.
--
resolution: - fixed
status: open - closed
___
Python tracker [EMAIL