[Python-checkins] cpython (merge 3.6 -> default): Fixed the documentation of the structure PyMethodDef.

serhiy.storchaka python-checkins at python.org
Mon Nov 21 04:38:51 EST 2016


https://hg.python.org/cpython/rev/94d9e97f3ee1
changeset: 105269:94d9e97f3ee1
parent: 105265:d2dd6578aa16
parent: 105268:00870a1d0c25
user: Serhiy Storchaka <storchaka at gmail.com>
date: Mon Nov 21 11:38:37 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

AltStyle によって変換されたページ (->オリジナル) /