Home
last modified time | relevance | path

Searched refs:x_attr (Results 1 – 4 of 4) sorted by relevance

/external/python/cpython3/Modules/
Dxxlimited.c23 PyObject *x_attr; /* Attributes dictionary */ member
37 self->x_attr = NULL; in newXxoObject()
46 Py_VISIT(self->x_attr); in Xxo_traverse()
53 Py_CLEAR(self->x_attr); in Xxo_finalize()
80 if (self->x_attr != NULL) { in Xxo_getattro()
81 PyObject *v = PyDict_GetItem(self->x_attr, name); in Xxo_getattro()
93 if (self->x_attr == NULL) { in Xxo_setattr()
94 self->x_attr = PyDict_New(); in Xxo_setattr()
95 if (self->x_attr == NULL) in Xxo_setattr()
99 int rv = PyDict_DelItemString(self->x_attr, name); in Xxo_setattr()
[all …]
Dxxmodule.c23 PyObject *x_attr; /* Attributes dictionary */ member
37 self->x_attr = NULL; in newXxoObject()
46 Py_XDECREF(self->x_attr); in Xxo_dealloc()
68 if (self->x_attr != NULL) { in Xxo_getattro()
69 PyObject *v = PyDict_GetItem(self->x_attr, name); in Xxo_getattro()
81 if (self->x_attr == NULL) { in Xxo_setattr()
82 self->x_attr = PyDict_New(); in Xxo_setattr()
83 if (self->x_attr == NULL) in Xxo_setattr()
87 int rv = PyDict_DelItemString(self->x_attr, name); in Xxo_setattr()
94 return PyDict_SetItemString(self->x_attr, name, v); in Xxo_setattr()
D_testmultiphase.c10 PyObject *x_attr; /* Attributes dictionary */ member
22 Py_VISIT(self->x_attr); in Example_traverse()
29 Py_CLEAR(self->x_attr); in Example_finalize()
55 if (self->x_attr != NULL) { in Example_getattro()
56 PyObject *v = PyDict_GetItem(self->x_attr, name); in Example_getattro()
68 if (self->x_attr == NULL) { in Example_setattr()
69 self->x_attr = PyDict_New(); in Example_setattr()
70 if (self->x_attr == NULL) in Example_setattr()
74 int rv = PyDict_DelItemString(self->x_attr, name); in Example_setattr()
81 return PyDict_SetItemString(self->x_attr, name, v); in Example_setattr()
/external/python/cpython2/Modules/
Dxxmodule.c23 PyObject *x_attr; /* Attributes dictionary */ member
37 self->x_attr = NULL; in newXxoObject()
46 Py_XDECREF(self->x_attr); in Xxo_dealloc()
68 if (self->x_attr != NULL) { in Xxo_getattr()
69 PyObject *v = PyDict_GetItemString(self->x_attr, name); in Xxo_getattr()
81 if (self->x_attr == NULL) { in Xxo_setattr()
82 self->x_attr = PyDict_New(); in Xxo_setattr()
83 if (self->x_attr == NULL) in Xxo_setattr()
87 int rv = PyDict_DelItemString(self->x_attr, name); in Xxo_setattr()
94 return PyDict_SetItemString(self->x_attr, name, v); in Xxo_setattr()