@trey.ioTrey Hunner @trey.io
2026-11-22 21:01 UTC
There's one big exception to this tip: if you need to maintain the insertion order of your items, you need a dictionary. Sets are unordered, but dictionaries maintain the insertion order of their items (see tip #323). So if you don't care about your dictionary's values or its order, use a set.
Link: Trey Hunner (@trey.io) (bsky.app/profile/trey.io/post/3n2oxr53c6e23)
A reply in a thread.
0 likes, 0 reposts, 0 replies
3 Next post4 More from @trey.ioBackBluesky home