Searched refs:currkey (Results 1 – 4 of 4) sorted by relevance
/external/python/cpython3/Modules/ |
D | itertoolsmodule.c | 18 PyObject *currkey; member 41 gbo->currkey = NULL; in groupby_new() 60 Py_XDECREF(gbo->currkey); in groupby_dealloc() 71 Py_VISIT(gbo->currkey); in groupby_traverse() 98 Py_XSETREF(gbo->currkey, newkey); in groupby_step() 111 if (gbo->currkey == NULL) in groupby_next() 118 rcmp = PyObject_RichCompareBool(gbo->tgtkey, gbo->currkey, Py_EQ); in groupby_next() 128 Py_INCREF(gbo->currkey); in groupby_next() 129 Py_XSETREF(gbo->tgtkey, gbo->currkey); in groupby_next() 135 r = PyTuple_Pack(2, gbo->currkey, grouper); in groupby_next() [all …]
|
/external/python/cpython2/Modules/ |
D | itertoolsmodule.c | 17 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() 96 Py_XSETREF(gbo->currkey, newkey); in groupby_step() 108 if (gbo->currkey == NULL) in groupby_next() 116 gbo->currkey, Py_EQ); in groupby_next() 126 Py_INCREF(gbo->currkey); in groupby_next() 127 Py_XSETREF(gbo->tgtkey, gbo->currkey); in groupby_next() 133 r = PyTuple_Pack(2, gbo->currkey, grouper); in groupby_next() [all …]
|
/external/python/cpython3/Doc/library/ |
D | itertools.rst | 400 self.tgtkey = self.currkey = self.currvalue = object() 405 while self.currkey == self.tgtkey: 407 self.currkey = self.keyfunc(self.currvalue) 408 self.tgtkey = self.currkey 409 return (self.currkey, self._grouper(self.tgtkey, self.id)) 411 while self.id is id and self.currkey == tgtkey: 417 self.currkey = self.keyfunc(self.currvalue)
|
/external/python/cpython2/Doc/library/ |
D | itertools.rst | 326 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)
|