File tree Expand file tree Collapse file tree 1 file changed +17
-5
lines changed
Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,6 @@ found in the dictionary of type objects.
1010
1111.. XXX document these!
1212
13- .. c :var :: PyTypeObject PyProperty_Type
14-
15- The type object for the built-in descriptor types.
16-
17-
1813 .. c :function :: PyObject* PyDescr_NewGetSet (PyTypeObject *type, struct PyGetSetDef *getset)
1914
2015
@@ -74,9 +69,26 @@ found in the dictionary of type objects.
7469.. c :function :: PyObject* PyWrapper_New (PyObject *, PyObject *)
7570
7671
72+ .. c :macro :: PyDescr_COMMON
73+
74+ This is a :term: `soft deprecated ` macro including the common fields for a
75+ descriptor object.
76+
77+ This was included in Python's C API by mistake; do not use it in extensions.
78+ For creating custom descriptor objects, create a class implementing the
79+ descriptor protocol (:c:member: `~PyTypeObject.tp_descr_get ` and
80+ :c:member: `~PyTypeObject.tp_descr_set `).
81+
82+
7783Built-in descriptors
7884^^^^^^^^^^^^^^^^^^^^
7985
86+ .. c:var:: PyTypeObject PyProperty_Type
87+
88+ The type object for property objects. This is the same object as
89+ :class:`property` in the Python layer.
90+
91+
8092.. c:var:: PyTypeObject PySuper_Type
8193
8294 The type object for super objects. This is the same object as
You can’t perform that action at this time.
0 commit comments