Announcing the release of SortedContainers version 0.9.6
SortedContainers is an Apache2-licensed, pure-Python implementation of sorted list, sorted dict, and sorted set data types that is fast-as-C implementations with 100% code coverage and hours of stress testing. The project is fully documented with performance benchmarks and comparisons to alternative implementations.
islicemethod to all data types. This method is similar to
__getitem__index slicing but returns an iterator, similar to itertools.islice but without the
islicealso has a default argument
reverse=Falsewhich will yield items from the slice in reverse order when True.
irange_keymethods to all data types. Like
islicethis method returns an iterator but slices the data type from a given minimum to maximum value. By default both the minimum and maximum are included in the range and a parameter
inclusive=(True, True)allows this to be changed. A default argument
reverse=Falsewill yield items in reverse order when True. The
irange_keyvariant permits constructing ranges directly from the indexed key, similar to
bisect_keyand related methods.
This release is backwards-compatible. Please upgrade.