mirror of
https://github.com/python/cpython.git
synced 2025-07-30 06:34:15 +00:00
Issue #12484: Remove a mention of Py_InitModule() and _PyImport_FixupExtension().
Thanks to Alejandro Santos for the bug report and Anish Shah for the patch.
This commit is contained in:
parent
85622e4bc9
commit
762d5ea875
3 changed files with 1 additions and 19 deletions
|
@ -247,20 +247,6 @@ For Red Hat, install the python-devel RPM to get the necessary files.
|
|||
For Debian, run ``apt-get install python-dev``.
|
||||
|
||||
|
||||
What does "SystemError: _PyImport_FixupExtension: module yourmodule not loaded" mean?
|
||||
-------------------------------------------------------------------------------------
|
||||
|
||||
This means that you have created an extension module named "yourmodule", but
|
||||
your module init function does not initialize with that name.
|
||||
|
||||
Every module init function will have a line similar to::
|
||||
|
||||
module = Py_InitModule("yourmodule", yourmodule_functions);
|
||||
|
||||
If the string passed to this function is not the same name as your extension
|
||||
module, the :exc:`SystemError` exception will be raised.
|
||||
|
||||
|
||||
How do I tell "incomplete input" from "invalid input"?
|
||||
------------------------------------------------------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue