Lines Matching refs:interned
228 static PyObject *interned = NULL; variable
546 CHECK(ascii->state.interned == SSTATE_NOT_INTERNED); in _PyUnicode_CheckConsistency()
1256 _PyUnicode_STATE(unicode).interned = 0; in _PyUnicode_New()
1476 _PyUnicode_STATE(unicode).interned = 0; in PyUnicode_New()
1837 assert(_PyUnicode_STATE(unicode).interned == SSTATE_NOT_INTERNED); in _PyUnicode_Ready()
1963 if (PyDict_DelItem(interned, unicode) != 0) { in unicode_dealloc()
15659 _PyUnicode_STATE(self).interned = 0; in unicode_subtype_new()
15861 if (interned == NULL) { in PyUnicode_InternInPlace()
15862 interned = PyDict_New(); in PyUnicode_InternInPlace()
15863 if (interned == NULL) { in PyUnicode_InternInPlace()
15869 PyObject *t = PyDict_SetDefault(interned, s, s); in PyUnicode_InternInPlace()
15885 _PyUnicode_STATE(s).interned = SSTATE_INTERNED_MORTAL; in PyUnicode_InternInPlace()
15907 _PyUnicode_STATE(*p).interned = SSTATE_INTERNED_IMMORTAL; in PyUnicode_InternImmortal()
15931 if (interned == NULL) { in _PyUnicode_ClearInterned()
15934 assert(PyDict_CheckExact(interned)); in _PyUnicode_ClearInterned()
15942 PyDict_GET_SIZE(interned)); in _PyUnicode_ClearInterned()
15948 while (PyDict_Next(interned, &pos, &s, &ignored_value)) { in _PyUnicode_ClearInterned()
15971 _PyUnicode_STATE(s).interned = SSTATE_NOT_INTERNED; in _PyUnicode_ClearInterned()
15979 PyDict_Clear(interned); in _PyUnicode_ClearInterned()
15980 Py_CLEAR(interned); in _PyUnicode_ClearInterned()
16354 assert(interned == NULL); in _PyUnicode_Fini()