Lines Matching defs:obj
537 {"obj", T_OBJECT,
573 static char *kwargs[] = {"obj", NULL};
1161 lru_cache_object *obj;
1209 obj = (lru_cache_object *)type->tp_alloc(type, 0);
1210 if (obj == NULL) {
1215 obj->root.prev = &obj->root;
1216 obj->root.next = &obj->root;
1217 obj->wrapper = wrapper;
1218 obj->typed = typed;
1219 obj->cache = cachedict;
1221 obj->func = func;
1222 obj->misses = obj->hits = 0;
1223 obj->maxsize = maxsize;
1225 obj->kwd_mark = state->kwd_mark;
1227 obj->lru_list_elem_type = state->lru_list_elem_type;
1229 obj->cache_info_type = cache_info_type;
1230 obj->dict = NULL;
1231 obj->weakreflist = NULL;
1232 return (PyObject *)obj;
1272 lru_cache_dealloc(lru_cache_object *obj)
1274 PyTypeObject *tp = Py_TYPE(obj);
1276 PyObject_GC_UnTrack(obj);
1277 if (obj->weakreflist != NULL) {
1278 PyObject_ClearWeakRefs((PyObject*)obj);
1281 (void)lru_cache_tp_clear(obj);
1282 tp->tp_free(obj);
1293 lru_cache_descr_get(PyObject *self, PyObject *obj, PyObject *type)
1295 if (obj == Py_None || obj == NULL) {
1299 return PyMethod_New(self, obj);