Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Extending Embedded Python" documention uses removed Py_InitModule function #48836

Closed
blakemadden mannequin opened this issue Dec 7, 2008 · 7 comments
Closed

"Extending Embedded Python" documention uses removed Py_InitModule function #48836

blakemadden mannequin opened this issue Dec 7, 2008 · 7 comments
Assignees
Labels
docs Documentation in the Doc dir

Comments

@blakemadden
Copy link
Mannequin

blakemadden mannequin commented Dec 7, 2008

BPO 4586
Nosy @brettcannon, @birkenfeld

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/birkenfeld'
closed_at = <Date 2008-12-07.22:46:04.865>
created_at = <Date 2008-12-07.22:42:21.913>
labels = ['docs']
title = '"Extending Embedded Python" documention uses removed Py_InitModule function'
updated_at = <Date 2008-12-09.22:08:56.153>
user = 'https://bugs.python.org/blakemadden'

bugs.python.org fields:

activity = <Date 2008-12-09.22:08:56.153>
actor = 'georg.brandl'
assignee = 'georg.brandl'
closed = True
closed_date = <Date 2008-12-07.22:46:04.865>
closer = 'georg.brandl'
components = ['Documentation']
creation = <Date 2008-12-07.22:42:21.913>
creator = 'blakemadden'
dependencies = []
files = []
hgrepos = []
issue_num = 4586
keywords = []
message_count = 7.0
messages = ['77273', '77274', '77304', '77305', '77448', '77457', '77459']
nosy_count = 3.0
nosy_names = ['brett.cannon', 'georg.brandl', 'blakemadden']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue4586'
versions = ['Python 3.0']

@blakemadden
Copy link
Mannequin Author

blakemadden mannequin commented Dec 7, 2008

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.

@blakemadden blakemadden mannequin assigned birkenfeld Dec 7, 2008
@blakemadden blakemadden mannequin added the docs Documentation in the Doc dir label Dec 7, 2008
@birkenfeld
Copy link
Member

Should be fixed in r67655.

@blakemadden
Copy link
Mannequin Author

blakemadden mannequin commented Dec 8, 2008

I am afraid that the webpage that I mentioned still uses
"Py_InitModule", I just checked. How do I get embedding to work? Thanks.

@blakemadden
Copy link
Mannequin Author

blakemadden mannequin commented Dec 8, 2008

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?

@brettcannon
Copy link
Member

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 bpo-4592 (already have a history over there so not
reopening this one).

@blakemadden
Copy link
Mannequin Author

blakemadden mannequin commented Dec 9, 2008

"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.

@birkenfeld
Copy link
Member

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.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
None yet
Development

No branches or pull requests

2 participants