Stéphane Wirtel <stephane at wirtel.be> added the comment: good catch, I only use itertools.groupby when I work for a collection. ---------- _______________________________________ Python tracker <report at bugs.python.org> <https://bugs.python.org/issue32709> _______________________________________