Lines Matching refs:firstitem
1622 PyObject *firstitem = NULL; in batch_list() local
1652 firstitem = PyIter_Next(iter); in batch_list()
1653 if (firstitem == NULL) { in batch_list()
1668 if (save(self, firstitem, 0) < 0) in batch_list()
1672 Py_CLEAR(firstitem); in batch_list()
1682 if (save(self, firstitem, 0) < 0) in batch_list()
1684 Py_CLEAR(firstitem); in batch_list()
1712 Py_XDECREF(firstitem); in batch_list()
1790 PyObject *firstitem = NULL; in batch_dict() local
1827 firstitem = PyIter_Next(iter); in batch_dict()
1828 if (firstitem == NULL) { in batch_dict()
1835 if (!PyTuple_Check(firstitem) || PyTuple_Size(firstitem) != 2) { in batch_dict()
1848 if (save(self, PyTuple_GET_ITEM(firstitem, 0), 0) < 0) in batch_dict()
1850 if (save(self, PyTuple_GET_ITEM(firstitem, 1), 0) < 0) in batch_dict()
1854 Py_CLEAR(firstitem); in batch_dict()
1864 if (save(self, PyTuple_GET_ITEM(firstitem, 0), 0) < 0) in batch_dict()
1866 if (save(self, PyTuple_GET_ITEM(firstitem, 1), 0) < 0) in batch_dict()
1868 Py_CLEAR(firstitem); in batch_dict()
1903 Py_XDECREF(firstitem); in batch_dict()