Lines Matching defs:data
571 wasted space and the more rapid freeing of older data.
627 /* this is the lead iterator, so fetch more data */
3813 def compress(data, selectors):
3815 return (d for d, s in zip(data, selectors) if s)
3820 PyObject *data;
3827 data as seq1: object
3829 Return data elements corresponding to true selector elements.
3831 Forms a shorter iterator from selected data elements using the selectors to
3832 choose the data elements.
3839 PyObject *data=NULL, *selectors=NULL;
3842 data = PyObject_GetIter(seq1);
3843 if (data == NULL)
3853 lz->data = data;
3858 Py_XDECREF(data);
3867 Py_XDECREF(lz->data);
3875 Py_VISIT(lz->data);
3883 PyObject *data = lz->data, *selectors = lz->selectors;
3885 PyObject *(*datanext)(PyObject *) = *Py_TYPE(data)->tp_iternext;
3896 datum = datanext(data);
3920 lz->data, lz->selectors);
4821 compress(data, selectors) --> (d[0] if s[0]), (d[1] if s[1]), ...\n\