Searched refs:modules_by_index (Results 1 – 3 of 3) sorted by relevance
274 Py_CLEAR(interp->modules_by_index); in _PyInterpreterState_Clear()655 if (state->modules_by_index == NULL) in PyState_FindModule()657 if (index >= PyList_GET_SIZE(state->modules_by_index)) in PyState_FindModule()659 res = PyList_GET_ITEM(state->modules_by_index, index); in PyState_FindModule()677 if (!state->modules_by_index) { in _PyState_AddModule()678 state->modules_by_index = PyList_New(0); in _PyState_AddModule()679 if (!state->modules_by_index) in _PyState_AddModule()682 while (PyList_GET_SIZE(state->modules_by_index) <= def->m_base.m_index) in _PyState_AddModule()683 if (PyList_Append(state->modules_by_index, Py_None) < 0) in _PyState_AddModule()686 return PyList_SetItem(state->modules_by_index, in _PyState_AddModule()[all …]
80 PyObject *modules_by_index; member
16085 - Issue #3327: Don't overallocate in the modules_by_index list.