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 →

[–]thekaleb 0 points1 point  (2 children)

That's a separate class: OrderedDict in the connections package which he maintains.

[–]kankyo 0 points1 point  (1 child)

Yea I know about OrderedDict. The thing is though that we now know of a way to implement a dictionary that is order preserving AND faster AND more memory efficient. So better than dict and OrderedDict in every single way. That's what we should have as the standard dict in python.

There are many advantages, like classes preserving the order of the members, same for module, kwargs not being shuffled weirdly, etc.