[issue32709] the iterable for itertools.groupby must be sorted

2018-01-29 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: I am going to close my issue because with your use case, this issue makes no sense. -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue32709] the iterable for itertools.groupby must be sorted

2018-01-29 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: good catch, I only use itertools.groupby when I work for a collection. -- ___ Python tracker ___

[issue32709] the iterable for itertools.groupby must be sorted

2018-01-29 Thread Cheryl Sabella
Cheryl Sabella added the comment: It depends upon your use case. In general, if you want it to work like SQL group by, then yes, it needs to be sorted, and I believe the documentation already covers that. However, there are scenarios where you want to condense a string, but keep the ordering

[issue32709] the iterable for itertools.groupby must be sorted

2018-01-29 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- keywords: +patch pull_requests: +5259 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue32709] the iterable for itertools.groupby must be sorted

2018-01-29 Thread Stéphane Wirtel
New submission from Stéphane Wirtel : The documentation of itertools.groupby indicates that generally, the iterable needs to be sorted. In fact, this iterable MUST be sorted. -- assignee: docs@python components: Documentation messages: 35 nosy: docs@python, matrixise priority: norma