Home
last modified time | relevance | path

Searched refs:weak_cache (Results 1 – 1 of 1) sorted by relevance

/external/python/cpython3/Modules/
D_zoneinfo.c322 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()
[all …]