Commit 5cc68968 authored by Serhiy Storchaka's avatar Serhiy Storchaka

Fixed the documentation of the structure PyMethodDef.

The fields ml_name and ml_doc are of type "const char *" rather of "char *".
parents 3ecd5ddd 1e9aed19
...@@ -1122,10 +1122,10 @@ If :c:member:`~PyTypeObject.tp_methods` is not *NULL*, it must refer to an array ...@@ -1122,10 +1122,10 @@ If :c:member:`~PyTypeObject.tp_methods` is not *NULL*, it must refer to an array
structure:: structure::
typedef struct PyMethodDef { typedef struct PyMethodDef {
char *ml_name; /* method name */ const char *ml_name; /* method name */
PyCFunction ml_meth; /* implementation function */ PyCFunction ml_meth; /* implementation function */
int ml_flags; /* flags */ int ml_flags; /* flags */
char *ml_doc; /* docstring */ const char *ml_doc; /* docstring */
} PyMethodDef; } PyMethodDef;
One entry should be defined for each method provided by the type; no entries are One entry should be defined for each method provided by the type; no entries are
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment