Home
last modified time | relevance | path

Searched refs:newtuple (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Objects/
Dcodeobject.c224 PyObject *newtuple; in validate_and_copy_tuple() local
229 newtuple = PyTuple_New(len); in validate_and_copy_tuple()
230 if (newtuple == NULL) in validate_and_copy_tuple()
244 Py_DECREF(newtuple); in validate_and_copy_tuple()
252 Py_DECREF(newtuple); in validate_and_copy_tuple()
256 PyTuple_SET_ITEM(newtuple, i, item); in validate_and_copy_tuple()
259 return newtuple; in validate_and_copy_tuple()
/external/python/cpython3/Objects/
Dcodeobject.c299 PyObject *newtuple; in validate_and_copy_tuple() local
304 newtuple = PyTuple_New(len); in validate_and_copy_tuple()
305 if (newtuple == NULL) in validate_and_copy_tuple()
319 Py_DECREF(newtuple); in validate_and_copy_tuple()
325 Py_DECREF(newtuple); in validate_and_copy_tuple()
329 PyTuple_SET_ITEM(newtuple, i, item); in validate_and_copy_tuple()
332 return newtuple; in validate_and_copy_tuple()