[Python-checkins] cpython (3.5): Fixed the documentation of the structure PyMethodDef.
serhiy.storchaka
python-checkins at python.org
Mon Nov 21 04:38:52 EST 2016
https://hg.python.org/cpython/rev/1cf7ecc37467
changeset: 105266:1cf7ecc37467
branch: 3.5
parent: 105262:6ae0e6d435de
user: Serhiy Storchaka <storchaka at gmail.com>
date: Mon Nov 21 11:37:18 2016 +0200
summary:
Fixed the documentation of the structure PyMethodDef.
The fields ml_name and ml_doc are of type "const char *" rather of "char *".
files:
Doc/extending/newtypes.rst | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Doc/extending/newtypes.rst b/Doc/extending/newtypes.rst
--- a/Doc/extending/newtypes.rst
+++ b/Doc/extending/newtypes.rst
@@ -1122,10 +1122,10 @@
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
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list