From: Brett Cannon Date: Sun, 27 Dec 2015 20:24:06 +0000 (-0800) Subject: Issue #12484: Remove a mention of Py_InitModule() and _PyImport_FixupExtension(). X-Git-Tag: v3.6.0a1~857^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=762d5ea8753e2c137eb7affa9fcb51db1cecd1aa;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Doc/c-api/import.rst b/Doc/c-api/import.rst index bf1b49577e4c..15a9e2550181 100644 --- a/Doc/c-api/import.rst +++ b/Doc/c-api/import.rst @@ -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 diff --git a/Doc/faq/extending.rst b/Doc/faq/extending.rst index 7bb4dc2e6088..c932d38883c6 100644 --- a/Doc/faq/extending.rst +++ b/Doc/faq/extending.rst @@ -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"? ------------------------------------------------------ diff --git a/Misc/ACKS b/Misc/ACKS index 81353f2dda44..1af4b67ca0b9 100644 --- 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