This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author cheryl.sabella
Recipients cheryl.sabella, docs@python, matrixise
Date 2018-01-29.12:49:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1517230199.4.0.467229070634.issue32709@psf.upfronthosting.co.za>
In-reply-to
Content
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, such as:

'aaaaabbbbbbccccaaaaddd' into '5a6b4c4a3d'

and itertools.groupby works very nicely for that.
History
Date User Action Args
2018-01-29 12:49:59cheryl.sabellasetrecipients: + cheryl.sabella, docs@python, matrixise
2018-01-29 12:49:59cheryl.sabellasetmessageid: <1517230199.4.0.467229070634.issue32709@psf.upfronthosting.co.za>
2018-01-29 12:49:59cheryl.sabellalinkissue32709 messages
2018-01-29 12:49:59cheryl.sabellacreate