python-sortedcontainers icon indicating copy to clipboard operation
python-sortedcontainers copied to clipboard

Python Sorted Container Types: Sorted List, Sorted Dict, and Sorted Set

Results 52 python-sortedcontainers issues
Sort by recently updated
recently updated
newest added
trafficstars

I ran a simple benchmark to compare the merge speed between `SortedSet` and a regular (Python 2.7) `set`. I expected the merge of sorted sets to be faster but it...

Hi, thanks for your work :) would it be possible to add a new function to the SortedDict (and therefore also SortedList) which sets a key a new value and...

Hi, I have some code where unpickling SortedLists and SortedSets takes a significant amount of the runtime of my program (I have a lot of them!) The problem is, I...

Debugpy and by extension VSCode displays the values of variables using `__repr__` when they are collapsed, but when expanded the internals of what should look like a list/dict/set are exposed:...

The README now mentions and links to the `sortedcontainers-stubs` package, as discussed in #107.

# Motivation * Other programming languages support high-level APIs like * Get next smaller value (or item) * Get floor value (or item) * Get ceil value (or item) *...

Binary operators such as `__eq__`, `__and__`, etc. should `return NotImplemented` in the event that the given argument is an unsupported type rather than raising an error. This allows the other...

Hi! This looks like a great library! If I understand correctly, the newest version on pypi: https://pypi.org/project/sortedcontainers/ seems to be three years old. It tells me, it was released on...

I am using SortedDict with neg from operators (so that index 0 is lowest key, value pair). The thing is that when I use irange, I need to swap minimum...