Home
last modified time | relevance | path

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

/external/python/cpython3/Python/
Dbltinmodule.c58 PyObject *base, *meth, *new_base, *result, *new_bases = NULL; in update_bases() local
65 if (new_bases) { in update_bases()
68 if (PyList_Append(new_bases, base) < 0) { in update_bases()
78 if (new_bases) { in update_bases()
79 if (PyList_Append(new_bases, base) < 0) { in update_bases()
96 if (!new_bases) { in update_bases()
99 if (!(new_bases = PyList_New(i))) { in update_bases()
104 PyList_SET_ITEM(new_bases, j, base); in update_bases()
108 j = PyList_GET_SIZE(new_bases); in update_bases()
109 if (PyList_SetSlice(new_bases, j, j, new_base) < 0) { in update_bases()
[all …]
/external/python/cpython3/Lib/
Dtypes.py74 new_bases = list(bases)
87 new_bases[i+shift:i+shift+1] = new_base
91 return tuple(new_bases)
/external/python/cpython3/Objects/
Dtypeobject.c658 type_set_bases(PyTypeObject *type, PyObject *new_bases, void *context) in type_set_bases() argument
666 if (!check_set_special_type_attr(type, new_bases, "__bases__")) in type_set_bases()
668 if (!PyTuple_Check(new_bases)) { in type_set_bases()
671 type->tp_name, Py_TYPE(new_bases)->tp_name); in type_set_bases()
674 if (PyTuple_GET_SIZE(new_bases) == 0) { in type_set_bases()
680 for (i = 0; i < PyTuple_GET_SIZE(new_bases); i++) { in type_set_bases()
684 ob = PyTuple_GET_ITEM(new_bases, i); in type_set_bases()
711 new_base = best_base(new_bases); in type_set_bases()
718 Py_INCREF(new_bases); in type_set_bases()
724 type->tp_bases = new_bases; in type_set_bases()
[all …]