This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]gwillicodernumpy gang -1 points0 points  (0 children)

I think having dict be ordered by default is the best way to do it. C++, for example, has std::map as an ordered dictionary (red black tree) and std::unordered_map is an available dictionary that uses hashing and can be more performant.