Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 762d5ea

Browse files
committed
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.
1 parent 85622e4 commit 762d5ea

3 files changed

Lines changed: 1 addition & 19 deletions

File tree

Doc/c-api/import.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -236,11 +236,6 @@ Importing Modules
236236
For internal use only.
237237
238238
239-
.. c:function:: PyObject* _PyImport_FixupExtension(char *, char *)
240-
241-
For internal use only.
242-
243-
244239
.. c:function:: int PyImport_ImportFrozenModuleObject(PyObject *name)
245240
246241
Load a frozen module named *name*. Return ``1`` for success, ``0`` if the

Doc/faq/extending.rst

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -247,20 +247,6 @@ For Red Hat, install the python-devel RPM to get the necessary files.
247247
For Debian, run ``apt-get install python-dev``.
248248

249249

250-
What does "SystemError: _PyImport_FixupExtension: module yourmodule not loaded" mean?
251-
-------------------------------------------------------------------------------------
252-
253-
This means that you have created an extension module named "yourmodule", but
254-
your module init function does not initialize with that name.
255-
256-
Every module init function will have a line similar to::
257-
258-
module = Py_InitModule("yourmodule", yourmodule_functions);
259-
260-
If the string passed to this function is not the same name as your extension
261-
module, the :exc:`SystemError` exception will be raised.
262-
263-
264250
How do I tell "incomplete input" from "invalid input"?
265251
------------------------------------------------------
266252

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1310,6 +1310,7 @@ Pete Sevander
13101310
Denis Severson
13111311
Ian Seyer
13121312
Dmitry Shachnev
1313+
Anish Shah
13131314
Daniel Shahaf
13141315
Mark Shannon
13151316
Ha Shao

0 commit comments

Comments
 (0)