Lines Matching refs:weak_cache
322 PyObject *weak_cache = get_weak_cache(state, type); in zoneinfo_ZoneInfo_impl() local
323 instance = PyObject_CallMethod(weak_cache, "get", "O", key, Py_None); in zoneinfo_ZoneInfo_impl()
336 PyObject_CallMethod(weak_cache, "setdefault", "OO", key, tmp); in zoneinfo_ZoneInfo_impl()
494 PyObject *weak_cache = get_weak_cache(state, type); in zoneinfo_ZoneInfo_clear_cache_impl() local
497 PyObject *rv = PyObject_CallMethod(weak_cache, "clear", NULL); in zoneinfo_ZoneInfo_clear_cache_impl()
525 PyObject *tmp = PyObject_CallMethodObjArgs(weak_cache, pop, item, in zoneinfo_ZoneInfo_clear_cache_impl()
2561 PyObject *weak_cache = PyObject_CallNoArgs(WeakValueDictionary); in new_weak_cache() local
2563 return weak_cache; in new_weak_cache()
2586 PyObject *weak_cache = new_weak_cache(); in zoneinfo_init_subclass() local
2587 if (weak_cache == NULL) { in zoneinfo_init_subclass()
2592 weak_cache) < 0) { in zoneinfo_init_subclass()
2593 Py_DECREF(weak_cache); in zoneinfo_init_subclass()
2596 Py_DECREF(weak_cache); in zoneinfo_init_subclass()