Lines Matching defs:selectors
3813 def compress(data, selectors):
3815 return (d for d, s in zip(data, selectors) if s)
3821 PyObject *selectors;
3828 selectors as seq2: object
3831 Forms a shorter iterator from selected data elements using the selectors to
3839 PyObject *data=NULL, *selectors=NULL;
3845 selectors = PyObject_GetIter(seq2);
3846 if (selectors == NULL)
3854 lz->selectors = selectors;
3859 Py_XDECREF(selectors);
3868 Py_XDECREF(lz->selectors);
3876 Py_VISIT(lz->selectors);
3883 PyObject *data = lz->data, *selectors = lz->selectors;
3886 PyObject *(*selectornext)(PyObject *) = *Py_TYPE(selectors)->tp_iternext;
3900 selector = selectornext(selectors);
3920 lz->data, lz->selectors);
4821 compress(data, selectors) --> (d[0] if s[0]), (d[1] if s[1]), ...\n\