Lines Matching refs:weak_cache
273 PyObject *weak_cache = get_weak_cache(type); in zoneinfo_new() local
274 instance = PyObject_CallMethod(weak_cache, "get", "O", key, Py_None); in zoneinfo_new()
287 PyObject_CallMethod(weak_cache, "setdefault", "OO", key, tmp); in zoneinfo_new()
407 PyObject *weak_cache = get_weak_cache(type); in zoneinfo_clear_cache() local
410 PyObject *rv = PyObject_CallMethod(weak_cache, "clear", NULL); in zoneinfo_clear_cache()
438 PyObject *tmp = PyObject_CallMethodObjArgs(weak_cache, pop, item, in zoneinfo_clear_cache()
2496 PyObject *weak_cache = in new_weak_cache() local
2499 return weak_cache; in new_weak_cache()
2534 PyObject *weak_cache = new_weak_cache(); in zoneinfo_init_subclass() local
2535 if (weak_cache == NULL) { in zoneinfo_init_subclass()
2540 weak_cache) < 0) { in zoneinfo_init_subclass()
2541 Py_DECREF(weak_cache); in zoneinfo_init_subclass()
2544 Py_DECREF(weak_cache); in zoneinfo_init_subclass()