summaryrefslogtreecommitdiffstats
path: root/Objects/classobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/classobject.c')
-rw-r--r--Objects/classobject.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Objects/classobject.c b/Objects/classobject.c
index f8ee6fd..df10aa2 100644
--- a/Objects/classobject.c
+++ b/Objects/classobject.c
@@ -2036,10 +2036,10 @@ im_get_name(PyMethodObject *im)
return PyObject_GetAttrString(im->im_func, "__name__");
}
-static struct getsetlist instancemethod_getsetlist[] = {
- {"__dict__", (getter)im_get_dict},
- {"__doc__", (getter)im_get_doc},
- {"__name__", (getter)im_get_name},
+static PyGetSetDef instancemethod_getsetlist[] = {
+ {"__dict__", (getter)im_get_dict, NULL, "same as im_func.__dict__"},
+ {"__doc__", (getter)im_get_doc, NULL, "same as im_func.__doc__"},
+ {"__name__", (getter)im_get_name, NULL, "same as im_func.__name__"},
{NULL} /* Sentinel */
};