Searched refs:weak_cache (Results 1 – 2 of 2) sorted by relevance
/external/python/cpython3/Modules/ |
D | _zoneinfo.c | 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() [all …]
|
/external/python/cffi/cffi/ |
D | backend_ctypes.py | 1029 weak_cache, MyRef = self._weakref_cache_ref 1033 del weak_cache[MyRef(cdata)] 1040 cdata, destructor = weak_cache.pop(k, (None, None)) 1046 weak_cache[MyRef(new_cdata, remove)] = (cdata, destructor)
|