diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-11-22 05:58:08 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-11-22 05:58:08 (GMT) |
commit | 007d7ff73f4e6e65cfafd512f9c23f7b7119b803 (patch) | |
tree | 31bd8b875b309b4259ca9eceff5a6746b0d4b19a /Doc/c-api | |
parent | 9af740b99a19a85ad5f38379b6175cf4ead685ba (diff) | |
download | cpython-007d7ff73f4e6e65cfafd512f9c23f7b7119b803.zip cpython-007d7ff73f4e6e65cfafd512f9c23f7b7119b803.tar.gz cpython-007d7ff73f4e6e65cfafd512f9c23f7b7119b803.tar.bz2 |
Issue #28761: The fields name and doc of structures PyMemberDef, PyGetSetDef,
PyStructSequence_Field, PyStructSequence_Desc, and wrapperbase are now of
type "const char *" rather of "char *".
Diffstat (limited to 'Doc/c-api')
-rw-r--r-- | Doc/c-api/typeobj.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/c-api/typeobj.rst b/Doc/c-api/typeobj.rst index 323f017..4a27d4b 100644 --- a/Doc/c-api/typeobj.rst +++ b/Doc/c-api/typeobj.rst @@ -725,11 +725,11 @@ type objects) *must* have the :attr:`ob_size` field. typedef int (*setter)(PyObject *, PyObject *, void *); typedef struct PyGetSetDef { - char *name; /* attribute name */ - getter get; /* C function to get the attribute */ - setter set; /* C function to set or delete the attribute */ - char *doc; /* optional doc string */ - void *closure; /* optional additional data for getter and setter */ + const char *name; /* attribute name */ + getter get; /* C function to get the attribute */ + setter set; /* C function to set or delete the attribute */ + const char *doc; /* optional doc string */ + void *closure; /* optional additional data for getter and setter */ } PyGetSetDef; |