summaryrefslogtreecommitdiffstats
path: root/Doc/extending
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-06-21 14:12:16 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-06-21 14:12:16 (GMT)
commitcd881b850c95cdb410620f3acc6ebf37e5467192 (patch)
tree203862804b0075c74ee1c1ac06db51bef3ba3ba6 /Doc/extending
parent289dd19124734b973e6f43f13328dfeca979d685 (diff)
parent03863d2b290d0856d7647a0275a73b55b6589fa7 (diff)
downloadcpython-cd881b850c95cdb410620f3acc6ebf37e5467192.zip
cpython-cd881b850c95cdb410620f3acc6ebf37e5467192.tar.gz
cpython-cd881b850c95cdb410620f3acc6ebf37e5467192.tar.bz2
Fixed documentation of functions with const char* arguments.
Diffstat (limited to 'Doc/extending')
-rw-r--r--Doc/extending/extending.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/extending/extending.rst b/Doc/extending/extending.rst
index 17cfdeb..a83fb6e 100644
--- a/Doc/extending/extending.rst
+++ b/Doc/extending/extending.rst
@@ -600,7 +600,7 @@ Extracting Parameters in Extension Functions
The :c:func:`PyArg_ParseTuple` function is declared as follows::
- int PyArg_ParseTuple(PyObject *arg, char *format, ...);
+ int PyArg_ParseTuple(PyObject *arg, const char *format, ...);
The *arg* argument must be a tuple object containing an argument list passed
from Python to a C function. The *format* argument must be a format string,
@@ -693,7 +693,7 @@ Keyword Parameters for Extension Functions
The :c:func:`PyArg_ParseTupleAndKeywords` function is declared as follows::
int PyArg_ParseTupleAndKeywords(PyObject *arg, PyObject *kwdict,
- char *format, char *kwlist[], ...);
+ const char *format, char *kwlist[], ...);
The *arg* and *format* parameters are identical to those of the
:c:func:`PyArg_ParseTuple` function. The *kwdict* parameter is the dictionary of
@@ -770,7 +770,7 @@ Building Arbitrary Values
This function is the counterpart to :c:func:`PyArg_ParseTuple`. It is declared
as follows::
- PyObject *Py_BuildValue(char *format, ...);
+ PyObject *Py_BuildValue(const char *format, ...);
It recognizes a set of format units similar to the ones recognized by
:c:func:`PyArg_ParseTuple`, but the arguments (which are input to the function,