This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: "Extending Embedded Python" documention uses removed Py_InitModule function
Type: Stage:
Components: Documentation Versions: Python 3.0
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: blakemadden, brett.cannon, georg.brandl
Priority: normal Keywords:

Created on 2008-12-07 22:42 by blakemadden, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (7)
msg77273 - (view) Author: blake madden (blakemadden) Date: 2008-12-07 22:42
On the page:

http://docs.python.org/3.0/extending/embedding.html#extending-embedded-python

Note that the function "Py_InitModule" is used.  From what I can tell,
this function no longer exists and regrettably I can't figure out how to
get "PyModule_Create" to work in its place.
msg77274 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2008-12-07 22:46
Should be fixed in r67655.
msg77304 - (view) Author: blake madden (blakemadden) Date: 2008-12-08 13:35
I am afraid that the webpage that I mentioned still uses
"Py_InitModule", I just checked.  How do I get embedding to work?  Thanks.
msg77305 - (view) Author: blake madden (blakemadden) Date: 2008-12-08 13:40
I took a look at the rst file in your comments and I tried that example
(which uses PyModule_Create), but I am sorry to say that it doesn't
work.  It says "no module named emb".  Are we sure that PyModule_Create
is all that needs to be called?
msg77448 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2008-12-09 20:59
You are probably looking at http://docs.python.org/3.0/ still and that
only updates when a new release happens. To see the in-development docs
look at http://docs.python.org/dev/3.0/ .

And the problem with the docs and its new PyModule_Create() usage is
being worked on in Issue4592 (already have a history over there so not
reopening this one).
msg77457 - (view) Author: blake madden (blakemadden) Date: 2008-12-09 21:50
"You are probably looking at http://docs.python.org/3.0/ still and that
only updates when a new release happens."

Didn't you just have a new release, Python 3?  I thought the website
said it was a stable release?  The production help for Python 3 is using
Py_InitModule, which doesn't even exist in the production release of
Python 3.  I stopped looking at that help when I figured that out, and
after that I have been looking at the DEV help which (as you mentioned)
does not work for other reasons.
msg77459 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2008-12-09 22:08
Brett:

> You are probably looking at http://docs.python.org/3.0/ still and that
> only updates when a new release happens.

That is not true, I want it to update continually, like the 2.6 ones,
and have already contacted Neal about it.

Blake:

> Didn't you just have a new release, Python 3?  I thought the website
> said it was a stable release?  The production help for Python 3 is using
> Py_InitModule, which doesn't even exist in the production release of
> Python 3.

Yes. The production help is not without errors, since many changes to
the Python 3 branch haven't been properly documented.

But as said, when all is set up correctly, the docs.python.org/3.0 docs
will update and correct errors such as this one.
History
Date User Action Args
2022-04-11 14:56:42adminsetgithub: 48836
2008-12-09 22:08:56georg.brandlsetmessages: + msg77459
2008-12-09 21:50:47blakemaddensetmessages: + msg77457
2008-12-09 20:59:37brett.cannonsetnosy: + brett.cannon
messages: + msg77448
2008-12-08 13:40:49blakemaddensetmessages: + msg77305
2008-12-08 13:35:34blakemaddensetmessages: + msg77304
2008-12-07 22:46:04georg.brandlsetstatus: open -> closed
resolution: fixed
messages: + msg77274
2008-12-07 22:42:21blakemaddencreate