[issue28939] Groupby Is Roughly Equivalent To ...
Greg Solomon
report at bugs.python.org
Mon Dec 12 02:52:05 EST 2016
Greg Solomon added the comment:
Oh, I get it. There needs to be a next(self.it) loop in __next__ as well as in _grouper in case the user doesn't call _grouper.
My test was
for ( k , g ) in groupby( L ):
print ( k , len( list( g ) ) )
so I was executing _grouper on every row.
Thanks !!!
----------
resolution: -> not a bug
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28939>
_______________________________________
More information about the Python-bugs-list
mailing list