summaryrefslogtreecommitdiffstats
path: root/Doc/extending
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-11-22 05:58:08 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-11-22 05:58:08 (GMT)
commit007d7ff73f4e6e65cfafd512f9c23f7b7119b803 (patch)
tree31bd8b875b309b4259ca9eceff5a6746b0d4b19a /Doc/extending
parent9af740b99a19a85ad5f38379b6175cf4ead685ba (diff)
downloadcpython-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/extending')
-rw-r--r--Doc/extending/newtypes.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/extending/newtypes.rst b/Doc/extending/newtypes.rst
index b8ce437..118f336 100644
--- a/Doc/extending/newtypes.rst
+++ b/Doc/extending/newtypes.rst
@@ -1138,11 +1138,11 @@ in the instance. A variety of primitive C types are supported, and access may
be read-only or read-write. The structures in the table are defined as::
typedef struct PyMemberDef {
- char *name;
- int type;
- int offset;
- int flags;
- char *doc;
+ const char *name;
+ int type;
+ int offset;
+ int flags;
+ const char *doc;
} PyMemberDef;
For each entry in the table, a :term:`descriptor` will be constructed and added to the