Home
last modified time | relevance | path

Searched refs:modules_by_index (Results 1 – 3 of 3) sorted by relevance

/external/python/cpython3/Python/
Dpystate.c301 Py_CLEAR(interp->modules_by_index); in PyInterpreterState_Clear()
663 if (state->modules_by_index == NULL) in PyState_FindModule()
665 if (index >= PyList_GET_SIZE(state->modules_by_index)) in PyState_FindModule()
667 res = PyList_GET_ITEM(state->modules_by_index, index); in PyState_FindModule()
686 if (!interp->modules_by_index) { in _PyState_AddModule()
687 interp->modules_by_index = PyList_New(0); in _PyState_AddModule()
688 if (!interp->modules_by_index) { in _PyState_AddModule()
693 while (PyList_GET_SIZE(interp->modules_by_index) <= def->m_base.m_index) { in _PyState_AddModule()
694 if (PyList_Append(interp->modules_by_index, Py_None) < 0) { in _PyState_AddModule()
700 return PyList_SetItem(interp->modules_by_index, in _PyState_AddModule()
[all …]
/external/python/cpython3/Include/internal/
Dpycore_interp.h92 PyObject *modules_by_index; member
/external/python/cpython3/Misc/
DHISTORY16085 - Issue #3327: Don't overallocate in the modules_by_index list.