@@ -21,12 +21,46 @@ found in the dictionary of type objects.
2121.. c :function :: PyObject* PyDescr_NewMember (PyTypeObject *type, struct PyMemberDef *meth)
2222
2323
24+ .. c :var :: PyTypeObject PyMemberDescr_Type
25+
26+ The type object for member descriptor objects created from
27+ :c:type: `PyMemberDef ` structures. These descriptors expose fields of a
28+ C struct as attributes on a type, and correspond
29+ to :class: `types.MemberDescriptorType ` objects in Python.
30+
31+
32+
33+ .. c :var :: PyTypeObject PyGetSetDescr_Type
34+
35+ The type object for get/set descriptor objects created from
36+ :c:type: `PyGetSetDef ` structures. These descriptors implement attributes
37+ whose value is computed by C getter and setter functions, and are used
38+ for many built-in type attributes.
39+
40+
2441.. c :function :: PyObject* PyDescr_NewMethod (PyTypeObject *type, struct PyMethodDef *meth)
2542
2643
44+ .. c :var :: PyTypeObject PyMethodDescr_Type
45+
46+ The type object for method descriptor objects created from
47+ :c:type: `PyMethodDef ` structures. These descriptors expose C functions as
48+ methods on a type, and correspond to :class: `types.MemberDescriptorType `
49+ objects in Python.
50+
51+
2752.. c :function :: PyObject* PyDescr_NewWrapper (PyTypeObject *type, struct wrapperbase *wrapper, void *wrapped)
2853
2954
55+ .. c :var :: PyTypeObject PyWrapperDescr_Type
56+
57+ The type object for wrapper descriptor objects created by
58+ :c:func: `PyDescr_NewWrapper ` and :c:func: `PyWrapper_New `. Wrapper
59+ descriptors are used internally to expose special methods implemented
60+ via wrapper structures, and appear in Python as
61+ :class: `types.WrapperDescriptorType ` objects.
62+
63+
3064.. c :function :: PyObject* PyDescr_NewClassMethod (PyTypeObject *type, PyMethodDef *method)
3165
3266
@@ -55,6 +89,14 @@ Built-in descriptors
5589 :class: `classmethod ` in the Python layer.
5690
5791
92+ .. c :var :: PyTypeObject PyClassMethodDescr_Type
93+
94+ The type object for C-level class method descriptor objects.
95+ This is the type of the descriptors created for :func: `classmethod ` defined in
96+ C extension types, and is the same object as :class: `classmethod `
97+ in Python.
98+
99+
58100.. c :function :: PyObject *PyClassMethod_New (PyObject *callable)
59101
60102 Create a new :class: `classmethod ` object wrapping *callable *.
0 commit comments