Home | History | Annotate | Download | only in simple

Lines Matching refs:attr

59 static void *get_C_ptr(PyObject *obj, const char *attr)
63 o = PyObject_GetAttr(obj, PyString_InternFromString(attr));
65 PyErr_Format(PyExc_TypeError, "missing '%s' attribute", attr);
69 PyErr_Format(PyExc_TypeError, "'%s' attribute is not integer", attr);
80 static int pcall(struct pymelem *pymelem, const char *attr, PyObject *args, PyObject **_res)
87 obj = PyObject_GetAttr(obj, PyString_InternFromString(attr));
89 PyErr_Format(PyExc_TypeError, "missing '%s' attribute", attr);
113 PyErr_Format(PyExc_TypeError, "wrong result from '%s'!", attr);
156 long *min, long *max, const char *attr)
164 err = pcall(pymelem, attr, obj1, &res);
208 const char *attr)
217 err = pcall(pymelem, attr, obj1, &res);