New submission from blake madden <[EMAIL PROTECTED]>:
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
blake madden <[EMAIL PROTECTED]> added the comment:
I am afraid that the webpage that I mentioned still uses
"Py_InitModule", I just checked. How do I get embedding to work? Thanks.
___
Python tracker <[EMAIL PROTECTED]>
<http://
blake madden <[EMAIL PROTECTED]> added the comment:
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 th
New submission from blake madden <[EMAIL PROTECTED]>:
Following an example of how to extend and embed that I found in patch
file r67655 (the website is out of date [issue4586]), PyModule_Create
appears to not work (or example is not complete). When I run r67655
(attached also) I get an
blake madden <[EMAIL PROTECTED]> added the comment:
It seems that a call to "PyDict_SetItemString" is what is missing from
r67655:
PyObject* m = PyModule_Create(&EmbModule);
PyDict_SetItemString(PyImport_GetModuleDict(), EmbModule.m_name, m);
I am just guessing here though
Changes by blake madden <[EMAIL PROTECTED]>:
--
title: PyModule_Create doesn't work (or example is missing something) ->
Example patch is missing something
___
Python tracker <[EMAIL PROTECTED]>
<http://bu
New submission from blake madden <[EMAIL PROTECTED]>:
http://docs.python.org/3.0/extending/newtypes.html
This example is using Py_InitModule3, is this function removed in Python 3?
--
assignee: georg.brandl
components: Documentation
messages: 77323
nosy: blakemadden, georg.
New submission from blake madden <[EMAIL PROTECTED]>:
In reference to Issue4592 (which includes a patch),
PyModule_Create()calls PyModule_New instead of PyImport_AddModule.
Because of this, calling PyModule_Create() won't work like Py_InitModule().
Is this correct, because the docum
blake madden <[EMAIL PROTECTED]> added the comment:
Sorry, mate, that's all Greek to me--I'm a total noob with Python. I'm
simply trying to run the example in r67655 (the "Extending Embedded
Python" example) and it fails with "'emb' not being fou
blake madden <[EMAIL PROTECTED]> added the comment:
So, does that mean that Python is fine and there is a problem in the
example? How do I get that example to work, there seems to be something
missing in it. Thanks.
___
Python tracker <[EMAIL
blake madden <[EMAIL PROTECTED]> added the comment:
"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? Th
11 matches
Mail list logo