facf0c92e0
Red Bear OS is a full fork. All sources must be available from git clone with zero network access. Removed gitignore rules that excluded fetched source trees under recipes/*/source/, local/recipes/kde/*/source/, local/recipes/qt/*/source/, and vendor source trees. Build artifacts (target/, build/, source.tar, *.o, *.so) remain excluded. 127291 files added — kernel, relibc, base, bootloader, pkgar, all KDE/Qt frameworks, mesa, wayland, DRM drivers, and every other recipe source.
41 lines
1.1 KiB
ReStructuredText
41 lines
1.1 KiB
ReStructuredText
.. highlight:: c
|
|
|
|
.. _descriptor-objects:
|
|
|
|
Descriptor Objects
|
|
------------------
|
|
|
|
"Descriptors" are objects that describe some attribute of an object. They are
|
|
found in the dictionary of type objects.
|
|
|
|
.. XXX document these!
|
|
|
|
.. c:var:: PyTypeObject PyProperty_Type
|
|
|
|
The type object for the built-in descriptor types.
|
|
|
|
|
|
.. c:function:: PyObject* PyDescr_NewGetSet(PyTypeObject *type, struct PyGetSetDef *getset)
|
|
|
|
|
|
.. c:function:: PyObject* PyDescr_NewMember(PyTypeObject *type, struct PyMemberDef *meth)
|
|
|
|
|
|
.. c:function:: PyObject* PyDescr_NewMethod(PyTypeObject *type, struct PyMethodDef *meth)
|
|
|
|
|
|
.. c:function:: PyObject* PyDescr_NewWrapper(PyTypeObject *type, struct wrapperbase *wrapper, void *wrapped)
|
|
|
|
|
|
.. c:function:: PyObject* PyDescr_NewClassMethod(PyTypeObject *type, PyMethodDef *method)
|
|
|
|
|
|
.. c:function:: int PyDescr_IsData(PyObject *descr)
|
|
|
|
Return non-zero if the descriptor objects *descr* describes a data attribute, or
|
|
``0`` if it describes a method. *descr* must be a descriptor object; there is
|
|
no error checking.
|
|
|
|
|
|
.. c:function:: PyObject* PyWrapper_New(PyObject *, PyObject *)
|