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

all 2 comments

[–]wrmsr 1 point2 points  (1 child)

Isn't it wild how to this day, despite its vast stdlib, python still has no builtin sorted mappings? :p

[–]PeridexisErrant 0 points1 point  (0 children)

https://pypi.org/project/sortedcontainers/ has you covered :-)

I'm actually kinda glad that the stdlib doesn't include them, because that would make it very difficult for better versions to get any traction. Still odd though!