Descriptor Objects

“Descriptors”是描述对象某些属性的对象。它们可以在类型对象的字典中找到。

  • PyTypeObject PyProperty_Type
    • 内置 Descriptors 类型的类型对象。

2.2 版中的新Function。

2.2 版中的新Function。

2.2 版中的新Function。

2.2 版中的新Function。

  • PyObject * PyDescr_NewWrapper(PyTypeObject *type ,struct wrapperbase wrapper *,void ** wrapped *)
    • 返回值:新参考.

2.2 版中的新Function。

2.3 版的新Function。

  • int PyDescr_IsData(PyObject ** descr *)
    • 如果 Descriptors 对象* descr *描述数据属性,则返回 true;如果描述方法,则返回 false。 * descr *必须是 Descriptors 对象;没有错误检查。

2.2 版中的新Function。

2.2 版中的新Function。