Lines Matching refs:TIMEDELTA_CACHE
84 static PyObject *TIMEDELTA_CACHE = NULL; variable
732 int contains = PyDict_Contains(TIMEDELTA_CACHE, pyoffset); in load_timedelta()
745 rv = PyDict_SetDefault(TIMEDELTA_CACHE, pyoffset, tmp); in load_timedelta()
749 rv = PyDict_GetItem(TIMEDELTA_CACHE, pyoffset); in load_timedelta()
2494 if (TIMEDELTA_CACHE == NULL) { in initialize_caches()
2495 TIMEDELTA_CACHE = PyDict_New(); in initialize_caches()
2498 Py_INCREF(TIMEDELTA_CACHE); in initialize_caches()
2501 if (TIMEDELTA_CACHE == NULL) { in initialize_caches()
2608 if (TIMEDELTA_CACHE != NULL && Py_REFCNT(TIMEDELTA_CACHE) > 1) { in module_free()
2609 Py_DECREF(TIMEDELTA_CACHE); in module_free()
2611 Py_CLEAR(TIMEDELTA_CACHE); in module_free()