[issue4592] Embedding example does not add created module

2008-12-09 Thread Brett Cannon
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

[issue4592] Embedding example does not add created module

2008-12-09 Thread Martin v. Löwis
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

[issue4592] Embedding example does not add created module

2008-12-09 Thread Amaury Forgeot d'Arc
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

[issue4592] Embedding example does not add created module

2008-12-09 Thread Georg Brandl
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