• Home
  • Raw
  • Download

Lines Matching refs:tgtkey

17     PyObject *tgtkey;  member
39 gbo->tgtkey = NULL; in groupby_new()
58 Py_XDECREF(gbo->tgtkey); in groupby_dealloc()
69 Py_VISIT(gbo->tgtkey); in groupby_traverse()
84 else if (gbo->tgtkey == NULL) in groupby_next()
89 rcmp = PyObject_RichCompareBool(gbo->tgtkey, gbo->currkey, Py_EQ); in groupby_next()
116 Py_XSETREF(gbo->tgtkey, gbo->currkey); in groupby_next()
118 grouper = _grouper_create(gbo, gbo->tgtkey); in groupby_next()
134 if (lz->tgtkey && lz->currkey && lz->currvalue) in groupby_reduce()
136 lz->it, lz->keyfunc, lz->currkey, lz->currvalue, lz->tgtkey); in groupby_reduce()
149 PyObject *currkey, *currvalue, *tgtkey; in groupby_setstate() local
154 if (!PyArg_ParseTuple(state, "OOO", &currkey, &currvalue, &tgtkey)) { in groupby_setstate()
161 Py_INCREF(tgtkey); in groupby_setstate()
162 Py_XSETREF(lz->tgtkey, tgtkey); in groupby_setstate()
230 PyObject *tgtkey; member
238 PyObject *parent, *tgtkey; in _grouper_new() local
240 if (!PyArg_ParseTuple(args, "O!O", &groupby_type, &parent, &tgtkey)) in _grouper_new()
243 return _grouper_create((groupbyobject*) parent, tgtkey); in _grouper_new()
247 _grouper_create(groupbyobject *parent, PyObject *tgtkey) in _grouper_create() argument
256 igo->tgtkey = tgtkey; in _grouper_create()
257 Py_INCREF(tgtkey); in _grouper_create()
268 Py_DECREF(igo->tgtkey); in _grouper_dealloc()
276 Py_VISIT(igo->tgtkey); in _grouper_traverse()
309 rcmp = PyObject_RichCompareBool(igo->tgtkey, gbo->currkey, Py_EQ); in _grouper_next()
324 return Py_BuildValue("O(OO)", Py_TYPE(lz), lz->parent, lz->tgtkey); in _grouper_reduce()