summaryrefslogtreecommitdiffstats
path: root/Doc/extending
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-12-24 16:27:25 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-12-24 16:27:25 (GMT)
commit71e30a0438dcb8089b57d3c0d11c84c3e62e54d1 (patch)
treec734b6152c2d8c6817d2fd7bfdc2517262996392 /Doc/extending
parent80072cb7fa556f56ec3b3cea1ac00d0b0fa33419 (diff)
downloadcpython-71e30a0438dcb8089b57d3c0d11c84c3e62e54d1.zip
cpython-71e30a0438dcb8089b57d3c0d11c84c3e62e54d1.tar.gz
cpython-71e30a0438dcb8089b57d3c0d11c84c3e62e54d1.tar.bz2
return the module object from PyMODINIT_FUNC
Diffstat (limited to 'Doc/extending')
-rw-r--r--Doc/extending/extending.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/extending/extending.rst b/Doc/extending/extending.rst
index ef2c726..17a8110 100644
--- a/Doc/extending/extending.rst
+++ b/Doc/extending/extending.rst
@@ -326,8 +326,8 @@ only non-\ ``static`` item defined in the module file::
return PyModule_Create(&spammodule);
}
-Note that PyMODINIT_FUNC declares the function as ``void`` return type,
-declares any special linkage declarations required by the platform, and for C++
+Note that PyMODINIT_FUNC declares the function as ``PyObject *`` return type,
+declares any special linkage declarations required by the platform, and for C++
declares the function as ``extern "C"``.
When the Python program imports module :mod:`spam` for the first time,