diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-11-21 09:38:14 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-11-21 09:38:14 (GMT) |
commit | bb8fd5b1eb3f8ba1339e449cebabec370d63fa47 (patch) | |
tree | 95919e5ae140cd70ff18ab07746a770b20c75eba /Doc | |
parent | 2863c387b07fdd03b8068c9209691915f039d2c8 (diff) | |
parent | 06a8dea46d593cd45391f49decf482fb3203f91b (diff) | |
download | cpython-bb8fd5b1eb3f8ba1339e449cebabec370d63fa47.zip cpython-bb8fd5b1eb3f8ba1339e449cebabec370d63fa47.tar.gz cpython-bb8fd5b1eb3f8ba1339e449cebabec370d63fa47.tar.bz2 |
Fixed the documentation of the structure PyMethodDef.
The fields ml_name and ml_doc are of type "const char *" rather of "char *".
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/extending/newtypes.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/extending/newtypes.rst b/Doc/extending/newtypes.rst index 4a6e26c..b8ce437 100644 --- a/Doc/extending/newtypes.rst +++ b/Doc/extending/newtypes.rst @@ -1122,10 +1122,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 |