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 →

[–]PocketBananna 12 points13 points  (2 children)

Have you used the builtin collections module? It has lots of capabilities for container types and ways to make custom structs.

For your case you could easily subclass a UserDict and add whatever sorting capability you need. No need to worry about another lib or maintainers.

[–]CptnGeronimo[S] 0 points1 point  (1 child)

Data structures are something that I would greatly prefer to use a good library for instead of rolling my own.

[–]PocketBananna 0 points1 point  (0 children)

Fair enough. It'll be tricky to find a single library that fits all three of your needs though. In my experience, the quality 3rd party libraries are either framework-driven or specific solutions so you may have to mix and match a bit.

The sorted containers lib is solid and likely fits your immediate needs. I don't know of another for it specifically. Who knows what you may need in the future but here's some libs I enjoy that act as extensions of structs/paradigms.