Lines Matching defs:active
1996 PyObject *active; /* Currently running input iterator */
2013 lz->active = NULL;
2058 Py_XDECREF(lz->active);
2067 Py_VISIT(lz->active);
2077 * consumed them all. lz->active is the current iterator. If it's NULL,
2080 if (lz->active == NULL) {
2086 lz->active = PyObject_GetIter(iterable);
2088 if (lz->active == NULL) {
2093 item = (*Py_TYPE(lz->active)->tp_iternext)(lz->active);
2102 /* lz->active is consumed, try with the next iterable. */
2103 Py_CLEAR(lz->active);
2117 if (lz->active) {
2118 return Py_BuildValue("O()(OO)", Py_TYPE(lz), lz->source, lz->active);
2131 PyObject *source, *active=NULL;
2137 if (!PyArg_ParseTuple(state, "O|O", &source, &active)) {
2140 if (!PyIter_Check(source) || (active != NULL && !PyIter_Check(active))) {
2147 Py_XINCREF(active);
2148 Py_XSETREF(lz->active, active);