diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-06-21 14:11:21 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-06-21 14:11:21 (GMT) |
commit | 03863d2b290d0856d7647a0275a73b55b6589fa7 (patch) | |
tree | b108c989aeb591eb444722e7f0046c75689182ab /Doc/faq | |
parent | 5fa22fc088ac44c5652107c7c17cda01eaa84a28 (diff) | |
download | cpython-03863d2b290d0856d7647a0275a73b55b6589fa7.zip cpython-03863d2b290d0856d7647a0275a73b55b6589fa7.tar.gz cpython-03863d2b290d0856d7647a0275a73b55b6589fa7.tar.bz2 |
Fixed documentation of functions with const char* arguments.
Diffstat (limited to 'Doc/faq')
-rw-r--r-- | Doc/faq/extending.rst | 4 |
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. |