新聞中心
描述符對象
“描述符”是描述對象的某些屬性的對象。它們存在于類型對象的字典中。

創(chuàng)新互聯(lián)專注于企業(yè)全網(wǎng)營銷推廣、網(wǎng)站重做改版、紅旗網(wǎng)站定制設(shè)計、自適應品牌網(wǎng)站建設(shè)、H5高端網(wǎng)站建設(shè)、成都做商城網(wǎng)站、集團公司官網(wǎng)建設(shè)、成都外貿(mào)網(wǎng)站建設(shè)、高端網(wǎng)站制作、響應式網(wǎng)頁設(shè)計等建站業(yè)務,價格優(yōu)惠性價比高,為紅旗等各大城市提供網(wǎng)站開發(fā)制作服務。
PyTypeObject PyProperty_Type
Part of the Stable ABI.
內(nèi)建描述符類型的類型對象。
PyObject *PyDescr_NewGetSet(PyTypeObject *type, struct PyGetSetDef *getset)
Return value: New reference. Part of the Stable ABI.
PyObject *PyDescr_NewMember(PyTypeObject *type, struct PyMemberDef *meth)
Return value: New reference. Part of the Stable ABI.
PyObject *PyDescr_NewMethod(PyTypeObject *type, struct PyMethodDef *meth)
Return value: New reference. Part of the Stable ABI.
PyObject *PyDescr_NewWrapper(PyTypeObject *type, struct wrapperbase *wrapper, void *wrapped)
Return value: New reference.
PyObject *PyDescr_NewClassMethod(PyTypeObject *type, PyMethodDef *method)
Return value: New reference. Part of the Stable ABI.
int PyDescr_IsData(PyObject *descr)
如果描述符對象 descr 描述的是一個數(shù)據(jù)屬性則返回非零值,或者如果它描述的是一個方法則返回 0。 descr 必須為一個描述符對象;不會進行錯誤檢測。
PyObject *PyWrapper_New(PyObject*, PyObject*)
Return value: New reference. Part of the Stable ABI.
本文題目:創(chuàng)新互聯(lián)Python教程:描述符對象
本文鏈接:http://www.dlmjj.cn/article/djeogsc.html


咨詢
建站咨詢
