(original) (raw)
changeset: 99693:003f1f60a09c branch: 3.5 parent: 99691:5114871a3ac6 user: Brett Cannon brett@python.org date: Sun Dec 27 12:24:06 2015 -0800 files: Doc/c-api/import.rst Doc/faq/extending.rst Misc/ACKS description: 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 -r 5114871a3ac6 -r 003f1f60a09c Doc/c-api/import.rst --- a/Doc/c-api/import.rst Sun Dec 27 12:08:37 2015 -0800 +++ b/Doc/c-api/import.rst Sun Dec 27 12:24:06 2015 -0800 @@ -236,11 +236,6 @@ 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 -r 5114871a3ac6 -r 003f1f60a09c Doc/faq/extending.rst --- a/Doc/faq/extending.rst Sun Dec 27 12:08:37 2015 -0800 +++ b/Doc/faq/extending.rst Sun Dec 27 12:24:06 2015 -0800 @@ -247,20 +247,6 @@ 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 -r 5114871a3ac6 -r 003f1f60a09c Misc/ACKS --- a/Misc/ACKS Sun Dec 27 12:08:37 2015 -0800 +++ b/Misc/ACKS Sun Dec 27 12:24:06 2015 -0800 @@ -1310,6 +1310,7 @@ Denis Severson Ian Seyer Dmitry Shachnev +Anish Shah Daniel Shahaf Mark Shannon Ha Shao /brett@python.org