Lines Matching defs:cache
23 PyObject *cache;
2136 if (state->cache == NULL) {
2137 state->cache = PyDict_New();
2138 if (state->cache == NULL)
2142 s_object = PyDict_GetItemWithError(state->cache, fmt);
2154 if (PyDict_GET_SIZE(state->cache) >= MAXCACHE)
2155 PyDict_Clear(state->cache);
2156 /* Attempt to cache the result */
2157 if (PyDict_SetItem(state->cache, fmt, s_object) == -1)
2168 Clear the internal cache.
2175 Py_CLEAR(get_struct_state(module)->cache);
2367 Py_VISIT(state->cache);
2380 Py_CLEAR(state->cache);