mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fixed documentation of functions with const char* arguments.
This commit is contained in:
parent
5fa22fc088
commit
03863d2b29
10 changed files with 19 additions and 19 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue