From 03863d2b290d0856d7647a0275a73b55b6589fa7 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sun, 21 Jun 2015 17:11:21 +0300 Subject: Fixed documentation of functions with const char* arguments. --- Doc/extending/extending.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Doc/extending') diff --git a/Doc/extending/extending.rst b/Doc/extending/extending.rst index c10efa976d..ba6bfa70a2 100644 --- a/Doc/extending/extending.rst +++ b/Doc/extending/extending.rst @@ -590,7 +590,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, @@ -683,7 +683,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 @@ -760,7 +760,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, -- cgit v1.2.1