Not planned
Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!
Check out: eBank.nz (Art Generator) |
Netwrck.com (AI Tools) |
Text-Generator.io (AI API) |
BitBank.nz (Crypto AI) |
ReadingTime (Kids Reading) |
RewordGame |
BigMultiplayerChess |
WebFiddle |
How.nz |
Helix AI Assistant
Activity
picnixz commentedon May 27, 2025
I don't think
groupby
is meant to sort data (at least the docs don't guarantee it). For instance,"".join([k for k, g in groupby('AAAABBBCCDAABBB')])
returns ABCDAB.More precisely, the docs mention (emphasis mine):
This is because sorting data before would exhaust iterators but also add an additional cost that may be superfluous in some situations.