summaryrefslogtreecommitdiff
path: root/Doc/c-api/typeobj.rst
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2017-02-04 09:19:04 +0300
committerBerker Peksag <berker.peksag@gmail.com>2017-02-04 09:19:04 +0300
commitb53991455f7f258ede7a26b69c2be5b8138b9f8a (patch)
tree3615cf0ef453ab113a547b1dfebacf415ed32602 /Doc/c-api/typeobj.rst
parent678487eb345f9f9dea3d3818ecad7d39145bdc65 (diff)
parent9bfb9694a65124a8191cdb8ce7992445d1d0f4d2 (diff)
downloadcpython-b53991455f7f258ede7a26b69c2be5b8138b9f8a.tar.gz
Issue #29198: Merge from 3.6
Diffstat (limited to 'Doc/c-api/typeobj.rst')
-rw-r--r--Doc/c-api/typeobj.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/c-api/typeobj.rst b/Doc/c-api/typeobj.rst
index ac6fd0b53f..2f0081aa3d 100644
--- a/Doc/c-api/typeobj.rst
+++ b/Doc/c-api/typeobj.rst
@@ -727,11 +727,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;