summaryrefslogtreecommitdiffstats
path: root/Doc/faq/extending.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/faq/extending.rst')
-rw-r--r--Doc/faq/extending.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/faq/extending.rst b/Doc/faq/extending.rst
index 02bba59..fea5a57 100644
--- a/Doc/faq/extending.rst
+++ b/Doc/faq/extending.rst
@@ -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.