summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2009-04-02 03:17:39 (GMT)
committerBrett Cannon <bcannon@gmail.com>2009-04-02 03:17:39 (GMT)
commitc4f90ebea78fab0d45340f4fb4b11298ee3ffdca (patch)
treefc910309f7189b79de8bccc0e5390c18d621e83c /Doc/c-api
parentc730a6a1237a31d0ce89ab8fee2dea9af450a6ee (diff)
downloadcpython-c4f90ebea78fab0d45340f4fb4b11298ee3ffdca.zip
cpython-c4f90ebea78fab0d45340f4fb4b11298ee3ffdca.tar.gz
cpython-c4f90ebea78fab0d45340f4fb4b11298ee3ffdca.tar.bz2
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')
-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 c4816f5..bed6089 100644
--- a/Doc/c-api/import.rst
+++ b/Doc/c-api/import.rst
@@ -232,7 +232,7 @@ Importing Modules
tricks with this to provide a dynamically created collection of frozen modules.
-.. cfunction:: int PyImport_AppendInittab(char *name, void (*initfunc)(void))
+.. cfunction:: int PyImport_AppendInittab(const char *name, void (*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