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

Hello! I wanted to use Sorted Containers classes with [Pydantic](https://docs.pydantic.dev/latest/) models, so I made a sortedcontainers-pydantic package: - PyPI: https://pypi.org/project/sortedcontainers-pydantic/ - GitHub: https://github.com/drivendataorg/sortedcontainers-pydantic It implements the special methods that Pydantic...

I have updated the run time complexities for the "__len__()" methods.

I have the case, that I want to use a custom sort function when working with a SortedSet. The key provided by this function for each value may change, based...

Hi, I was wondering about the following behavior when iterating over the values of a SortedSet and discarding them, i.e. why are there still values left after this operation, and...

My name is McKenna Dallmeyer and I would like to submit python-sortedcontainers to OSS-Fuzz. If you are not familiar with the project, OSS-Fuzz is Google's platform for continuous fuzzing of...

🎉 Congratulations! Your [project](https://hellogithub.com/en/repository/f4e73c54e631413386c6b577385f4e96) has been featured and recommended by the HelloGitHub community. We invite you to join the HelloGitHub Badge Program. Joining will grant you the following privileges: -...

Please release a new version on PYPI. Thank you.

The [introduction](https://github.com/grantjenks/python-sortedcontainers/blob/master/docs/introduction.rst#sorted-dict) shows the following example. Why not make this a first-class citizen fo the library instead of asking every user who needs it to create their own? ``` class...

…rted sets We can avoid declaring _set variable and directly access self._set. For now doing this in discard method only. I can work on entire code base to remove unnecessary...

I usually make extensive use of type annotation to take advantage of type hinting in programming tools. For example: ```python data: dict[int, tuple[str, int, float]] = {} # a few...