Message311119
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. |
|
Date |
User |
Action |
Args |
2018-01-29 12:49:59 | cheryl.sabella | set | recipients:
+ cheryl.sabella, docs@python, matrixise |
2018-01-29 12:49:59 | cheryl.sabella | set | messageid: <1517230199.4.0.467229070634.issue32709@psf.upfronthosting.co.za> |
2018-01-29 12:49:59 | cheryl.sabella | link | issue32709 messages |
2018-01-29 12:49:59 | cheryl.sabella | create | |
|