Lines Matching defs:attr
92 static void *get_C_ptr(PyObject *obj, const char *attr)
97 o = PyObject_GetAttr(obj, InternFromString(attr));
99 PyErr_Format(PyExc_TypeError, "missing '%s' attribute", attr);
103 PyErr_Format(PyExc_TypeError, "'%s' attribute is not Int or Long", attr);
114 static int pcall(struct pymelem *pymelem, const char *attr, PyObject *args, PyObject **_res)
121 obj = PyObject_GetAttr(obj, InternFromString(attr));
123 PyErr_Format(PyExc_TypeError, "missing '%s' attribute", attr);
151 PyErr_Format(PyExc_TypeError, "wrong result from '%s'!", attr);
194 long *min, long *max, const char *attr)
202 err = pcall(pymelem, attr, obj1, &res);
248 const char *attr)
257 err = pcall(pymelem, attr, obj1, &res);