Merge for issue #12484
This commit is contained in:
commit
4a4ca7c13f
|
@ -236,11 +236,6 @@ Importing Modules
|
||||||
For internal use only.
|
For internal use only.
|
||||||
|
|
||||||
|
|
||||||
.. c:function:: PyObject* _PyImport_FixupExtension(char *, char *)
|
|
||||||
|
|
||||||
For internal use only.
|
|
||||||
|
|
||||||
|
|
||||||
.. c:function:: int PyImport_ImportFrozenModuleObject(PyObject *name)
|
.. c:function:: int PyImport_ImportFrozenModuleObject(PyObject *name)
|
||||||
|
|
||||||
Load a frozen module named *name*. Return ``1`` for success, ``0`` if the
|
Load a frozen module named *name*. Return ``1`` for success, ``0`` if the
|
||||||
|
|
|
@ -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``.
|
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"?
|
How do I tell "incomplete input" from "invalid input"?
|
||||||
------------------------------------------------------
|
------------------------------------------------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue