Home
last modified time | relevance | path

Searched refs:currkey (Results 1 – 4 of 4) sorted by relevance

/external/python/cpython3/Modules/
Ditertoolsmodule.c18 PyObject *currkey; member
40 gbo->currkey = NULL; in groupby_new()
59 Py_XDECREF(gbo->currkey); in groupby_dealloc()
70 Py_VISIT(gbo->currkey); in groupby_traverse()
82 if (gbo->currkey == NULL) in groupby_next()
89 rcmp = PyObject_RichCompareBool(gbo->tgtkey, gbo->currkey, Py_EQ); in groupby_next()
111 Py_XSETREF(gbo->currkey, newkey); in groupby_next()
115 Py_INCREF(gbo->currkey); in groupby_next()
116 Py_XSETREF(gbo->tgtkey, gbo->currkey); in groupby_next()
122 r = PyTuple_Pack(2, gbo->currkey, grouper); in groupby_next()
[all …]
/external/python/cpython2/Modules/
Ditertoolsmodule.c17 PyObject *currkey; member
39 gbo->currkey = NULL; in groupby_new()
58 Py_XDECREF(gbo->currkey); in groupby_dealloc()
69 Py_VISIT(gbo->currkey); in groupby_traverse()
81 if (gbo->currkey == NULL) in groupby_next()
89 gbo->currkey, Py_EQ); in groupby_next()
112 tmp = gbo->currkey; in groupby_next()
113 gbo->currkey = newkey; in groupby_next()
121 Py_INCREF(gbo->currkey); in groupby_next()
123 gbo->tgtkey = gbo->currkey; in groupby_next()
[all …]
/external/python/cpython2/Doc/library/
Ditertools.rst326 self.tgtkey = self.currkey = self.currvalue = object()
330 while self.currkey == self.tgtkey:
332 self.currkey = self.keyfunc(self.currvalue)
333 self.tgtkey = self.currkey
334 return (self.currkey, self._grouper(self.tgtkey))
336 while self.currkey == tgtkey:
339 self.currkey = self.keyfunc(self.currvalue)
/external/python/cpython3/Doc/library/
Ditertools.rst400 self.tgtkey = self.currkey = self.currvalue = object()
404 while self.currkey == self.tgtkey:
406 self.currkey = self.keyfunc(self.currvalue)
407 self.tgtkey = self.currkey
408 return (self.currkey, self._grouper(self.tgtkey))
410 while self.currkey == tgtkey:
416 self.currkey = self.keyfunc(self.currvalue)