Searched refs:newtuple (Results 1 – 2 of 2) sorted by relevance
224 PyObject *newtuple; in validate_and_copy_tuple() local229 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()
299 PyObject *newtuple; in validate_and_copy_tuple() local304 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()