Lines Matching refs:weak_cache
272 PyObject *weak_cache = get_weak_cache(type); in zoneinfo_new() local
273 instance = PyObject_CallMethod(weak_cache, "get", "O", key, Py_None); in zoneinfo_new()
286 PyObject_CallMethod(weak_cache, "setdefault", "OO", key, tmp); in zoneinfo_new()
406 PyObject *weak_cache = get_weak_cache(type); in zoneinfo_clear_cache() local
409 PyObject *rv = PyObject_CallMethod(weak_cache, "clear", NULL); in zoneinfo_clear_cache()
434 PyObject *tmp = PyObject_CallMethodObjArgs(weak_cache, pop, item, in zoneinfo_clear_cache()
2484 PyObject *weak_cache = in new_weak_cache() local
2487 return weak_cache; in new_weak_cache()
2522 PyObject *weak_cache = new_weak_cache(); in zoneinfo_init_subclass() local
2523 if (weak_cache == NULL) { in zoneinfo_init_subclass()
2527 PyObject_SetAttrString((PyObject *)cls, "_weak_cache", weak_cache); in zoneinfo_init_subclass()
2528 Py_DECREF(weak_cache); in zoneinfo_init_subclass()