summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/import.rst
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2009-04-02 03:41:46 (GMT)
committerBrett Cannon <bcannon@gmail.com>2009-04-02 03:41:46 (GMT)
commita826f32054710f7dc602573f99c6c87a725adbba (patch)
tree8c3de05b40281fd0453f64f1a816b2d9e47fdb75 /Doc/c-api/import.rst
parent3e2ea79bdaa6be1337b34f8da03f8c42dfe43d2f (diff)
downloadcpython-a826f32054710f7dc602573f99c6c87a725adbba.zip
cpython-a826f32054710f7dc602573f99c6c87a725adbba.tar.gz
cpython-a826f32054710f7dc602573f99c6c87a725adbba.tar.bz2
Merged revisions 71031 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r71031 | brett.cannon | 2009-04-01 20:17:39 -0700 (Wed, 01 Apr 2009) | 6 lines PyImport_AppendInittab() took a char * as a first argument even though that string was stored beyond the life of the call. Changed the signature to be const char * to help make this point. Closes issue #1419652. ........
Diffstat (limited to 'Doc/c-api/import.rst')
-rw-r--r--Doc/c-api/import.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/c-api/import.rst b/Doc/c-api/import.rst
index fdbbb12..ac4cde5 100644
--- a/Doc/c-api/import.rst
+++ b/Doc/c-api/import.rst
@@ -200,7 +200,7 @@ Importing Modules
tricks with this to provide a dynamically created collection of frozen modules.
-.. cfunction:: int PyImport_AppendInittab(char *name, PyObject* (*initfunc)(void))
+.. cfunction:: int PyImport_AppendInittab(const char *name, PyObject* (*initfunc)(void))
Add a single module to the existing table of built-in modules. This is a
convenience wrapper around :cfunc:`PyImport_ExtendInittab`, returning ``-1`` if