]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #12484: Remove a mention of Py_InitModule() and _PyImport_FixupExtension().
authorBrett Cannon <brett@python.org>
Sun, 27 Dec 2015 20:24:06 +0000 (12:24 -0800)
committerBrett Cannon <brett@python.org>
Sun, 27 Dec 2015 20:24:06 +0000 (12:24 -0800)
Thanks to Alejandro Santos for the bug report and Anish Shah for the
patch.

Doc/c-api/import.rst
Doc/faq/extending.rst
Misc/ACKS

index bf1b49577e4c55d2382e4e6482294300e8bdf71f..15a9e255018199b787dac2a2856145de3939b1d0 100644 (file)
@@ -236,11 +236,6 @@ Importing Modules
    For internal use only.
 
 
-.. c:function:: PyObject* _PyImport_FixupExtension(char *, char *)
-
-   For internal use only.
-
-
 .. c:function:: int PyImport_ImportFrozenModuleObject(PyObject *name)
 
    Load a frozen module named *name*.  Return ``1`` for success, ``0`` if the
index 7bb4dc2e608819e4580e114afddcad9d5f41cba7..c932d38883c6dc4c3ec3285ac905eef1459c1a78 100644 (file)
@@ -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"?
 ------------------------------------------------------
 
index 81353f2dda44d9ff8c85347b516b1337c4ae1214..1af4b67ca0b906de9b74ee8c9ab88adf8214aae5 100644 (file)
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -1310,6 +1310,7 @@ Pete Sevander
 Denis Severson
 Ian Seyer
 Dmitry Shachnev
+Anish Shah
 Daniel Shahaf
 Mark Shannon
 Ha Shao