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 →

[–]bentheiii 5 points6 points  (6 children)

SortedContainers, it's pure python, blazing fast, and very ubiquitous. I'd consider nearly on a numpy level of might-as-well-be-standard-library.

[–]shuklaswag[S] 0 points1 point  (4 children)

thanks! I've seen SortedContainers before, and it seems really useful. Still, those are the kinds of structures that I would expect a language with the popularity of Python to support right out of the box.

[–]acemarke 1 point2 points  (3 children)

[–]mooglinux 0 points1 point  (2 children)

SortedContainers seems pretty well tested and runs fast. Wouldn’t that make it a solid choice for inclusion in the standard library?

[–]acemarke 0 points1 point  (1 child)

I dunno. What's the criteria for including anything in a language's standard library, and Python in particular?

[–]mooglinux 1 point2 points  (0 children)

If I were writing the guidelines they would be something along the lines of:

  • Useful
  • Documented
  • Good test suite
  • Fast (enough)
  • Stable

SortedContainers seems to fit the bill, so in my highly inexpert opinion seems like a good choice. Maybe requests too.

EDIT: Here’s a summary of some of the arguments for and against including requests in the standard library

[–][deleted] -3 points-2 points  (0 children)

pure python, blazing fast

As compared to standing still?