Fixed documentation of functions with const char* arguments.

This commit is contained in:
Serhiy Storchaka 2015-06-21 17:11:21 +03:00
parent 5fa22fc088
commit 03863d2b29
10 changed files with 19 additions and 19 deletions

View file

@ -115,8 +115,8 @@ call, a format string like that used with :c:func:`Py_BuildValue`, and the
argument values::
PyObject *
PyObject_CallMethod(PyObject *object, char *method_name,
char *arg_format, ...);
PyObject_CallMethod(PyObject *object, const char *method_name,
const char *arg_format, ...);
This works for any object that has methods -- whether built-in or user-defined.
You are responsible for eventually :c:func:`Py_DECREF`\ 'ing the return value.