3 .. _descriptor-objects:
8 "Descriptors" are objects that describe some attribute of an object. They are
9 found in the dictionary of type objects.
12 .. cvar:: PyTypeObject PyProperty_Type
14 The type object for the built-in descriptor types.
19 .. cfunction:: PyObject* PyDescr_NewGetSet(PyTypeObject *type, struct PyGetSetDef *getset)
24 .. cfunction:: PyObject* PyDescr_NewMember(PyTypeObject *type, struct PyMemberDef *meth)
29 .. cfunction:: PyObject* PyDescr_NewMethod(PyTypeObject *type, struct PyMethodDef *meth)
34 .. cfunction:: PyObject* PyDescr_NewWrapper(PyTypeObject *type, struct wrapperbase *wrapper, void *wrapped)
39 .. cfunction:: PyObject* PyDescr_NewClassMethod(PyTypeObject *type, PyMethodDef *method)
44 .. cfunction:: int PyDescr_IsData(PyObject *descr)
46 Return true if the descriptor objects *descr* describes a data attribute, or
47 false if it describes a method. *descr* must be a descriptor object; there is
53 .. cfunction:: PyObject* PyWrapper_New(PyObject *, PyObject *)