Comment by baq

Comment by baq a day ago

1 reply

dicts ordering keys in insertion order isn't an implementation detail anymore and hasn't been for years.

nick238 11 hours ago

I get that all dicts are now effectively an `collections.OrderedDict`, but I've never seen practical code that uses the insertion order. You can't do much with that info (no `.pop()`, can't sort a dict without recreating it) beyond maybe helping readability when you print or serialize it.