Searched refs:newslots (Results 1 – 2 of 2) sorted by relevance
/external/python/cpython3/Objects/ |
D | typeobject.c | 2352 PyObject *qualname, *slots = NULL, *tmp, *newslots, *cell; in type_new() local 2515 newslots = PyList_New(nslots - add_dict - add_weak); in type_new() 2516 if (newslots == NULL) in type_new() 2527 Py_DECREF(newslots); in type_new() 2530 PyList_SET_ITEM(newslots, j, tmp); in type_new() 2540 Py_DECREF(newslots); in type_new() 2549 if (PyList_Sort(newslots) == -1) { in type_new() 2550 Py_DECREF(newslots); in type_new() 2553 slots = PyList_AsTuple(newslots); in type_new() 2554 Py_DECREF(newslots); in type_new()
|
/external/python/cpython2/Objects/ |
D | typeobject.c | 2098 PyObject *slots, *tmp, *newslots; in type_new() local 2269 newslots = PyList_New(nslots - add_dict - add_weak); in type_new() 2270 if (newslots == NULL) in type_new() 2281 Py_DECREF(newslots); in type_new() 2284 PyList_SET_ITEM(newslots, j, tmp); in type_new() 2290 if (PyList_Sort(newslots) == -1) { in type_new() 2292 Py_DECREF(newslots); in type_new() 2295 slots = PyList_AsTuple(newslots); in type_new() 2296 Py_DECREF(newslots); in type_new()
|