• Home
  • Raw
  • Download

Lines Matching refs:attr_name

17 .. c:function:: int PyObject_HasAttr(PyObject *o, PyObject *attr_name)
19 Returns ``1`` if *o* has the attribute *attr_name*, and ``0`` otherwise. This
20 is equivalent to the Python expression ``hasattr(o, attr_name)``. This function
24 .. c:function:: int PyObject_HasAttrString(PyObject *o, const char *attr_name)
26 Returns ``1`` if *o* has the attribute *attr_name*, and ``0`` otherwise. This
27 is equivalent to the Python expression ``hasattr(o, attr_name)``. This function
31 .. c:function:: PyObject* PyObject_GetAttr(PyObject *o, PyObject *attr_name)
33 Retrieve an attribute named *attr_name* from object *o*. Returns the attribute
35 expression ``o.attr_name``.
38 .. c:function:: PyObject* PyObject_GetAttrString(PyObject *o, const char *attr_name)
40 Retrieve an attribute named *attr_name* from object *o*. Returns the attribute
42 expression ``o.attr_name``.
55 .. c:function:: int PyObject_SetAttr(PyObject *o, PyObject *attr_name, PyObject *v)
57 Set the value of the attribute named *attr_name*, for object *o*, to the value
60 ``o.attr_name = v``.
66 .. c:function:: int PyObject_SetAttrString(PyObject *o, const char *attr_name, PyObject *v)
68 Set the value of the attribute named *attr_name*, for object *o*, to the value
71 ``o.attr_name = v``.
89 .. c:function:: int PyObject_DelAttr(PyObject *o, PyObject *attr_name)
91 Delete attribute named *attr_name*, for object *o*. Returns ``-1`` on failure.
92 This is the equivalent of the Python statement ``del o.attr_name``.
95 .. c:function:: int PyObject_DelAttrString(PyObject *o, const char *attr_name)
97 Delete attribute named *attr_name*, for object *o*. Returns ``-1`` on failure.
98 This is the equivalent of the Python statement ``del o.attr_name``.