From e4a147b1bd0171a6138b61354fc0b3ac99c271ae Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Mon, 21 Nov 2016 11:37:18 +0200 Subject: [PATCH] Fixed the documentation of the structure PyMethodDef. The fields ml_name and ml_doc are of type "const char *" rather of "char *". --- Doc/extending/newtypes.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/extending/newtypes.rst b/Doc/extending/newtypes.rst index ee173b7e23..6e275e58ef 100644 --- a/Doc/extending/newtypes.rst +++ b/Doc/extending/newtypes.rst @@ -1170,10 +1170,10 @@ If :c:member:`~PyTypeObject.tp_methods` is not *NULL*, it must refer to an array structure:: typedef struct PyMethodDef { - char *ml_name; /* method name */ + const char *ml_name; /* method name */ PyCFunction ml_meth; /* implementation function */ int ml_flags; /* flags */ - char *ml_doc; /* docstring */ + const char *ml_doc; /* docstring */ } PyMethodDef; One entry should be defined for each method provided by the type; no entries are -- 2.50.1