Sorted Containers Release History¶
1.5.8 (2017-12-08)¶
Bugfixes
- Added
SortedList.reverseto overrideMutableSequence.reverseand raiseNotImplementedError.
1.5.7 (2016-12-22)¶
Bugfixes
- Changed
SortedList.__setitem__to support slices with stop less than start and step equal one.
1.5.4 (2016-10-16)¶
Bugfixes
- Changed
SortedList.__new__to callSortedListWithKey.__init__once instead of twice.
1.5.1 (2016-05-26)¶
Miscellaneous
- Added support for PyLint and minor source changes.
- Dropped Python 3.2 support from tox testing due to virtualenv limitations.
1.4.2 (2015-10-20)¶
API Changes
- Changed
SortedListinitializer to support key-argument callable and automatically returnSortedListWithKeywhen present. - Changed
SortedListWithKeyto inherit fromSortedList. - Changed
SortedSet.__ior__to call update rather than union. - Changed SortedList comparison to match Sequence semantics as described in CPython Language Reference Section 5.9.
- Changed SortedSet comparison to raise NotImplemented on type mismatch.
- Removed SortedList.as_list method. Use
list(sorted_list)instead. - Removed SortedList._slice method. Use
slice.indicesinstead. - Added private references to public methods for internal use to ease method over-loading.
Bugfixes
- Changed sorteddict.ValuesView.count to correctly reference sorted dictionary.
Improvements
SortedList.__getitem__now 35% faster for indexing at beginning and end.SortedList.popnow 35% faster by inlining fast-paths.del sorted_list[:]now calls clear and is much faster.sorted_list[:] = valuesnow calls clear and update and is much faster.
Miscellaneous
- Added Python 3.5 support in tox testing.
- Added discussion of ruamel.ordereddict.sorteddict to performance documentation.
- Merged file
sortedlistwithkey.pyintosortedlist.py.
0.9.6 (2015-06-22)¶
API Changes
- Added
islicemethod to sorted list, dict, and set types. - Added
irangeandirange_keymethod to sorted list, dict, and set types.
0.9.5 (2015-03-16)¶
API Changes
- Added
bisect_keymethods to sorted list, dict, and set types. - Added
last=Trueargument toSortedDict.popitem.
0.9.3 (2014-11-30)¶
API Changes
- Removed
SortedListWithKeyPairtype.
Improvements
- Changed type references to
self.__class__as able.
0.9.2 (2014-10-20)¶
API Changes
- Removed
value_orderableargument fromSortedListWithKeyinitializer. - Added key-callable argument to
SortedDictinitializer. - Added key-callable argument to
SortedSetinitializer.
Improvements
- Changed
SortedDictto inherit directly fromdict.
Miscellaneous
- Added PyPy3 support to tox testing.
- Added
SortedListWithKeyto sorted list performance comparison documentation.
0.9.1 (2014-09-20)¶
Bugfixes
- Changed
SortedList.__setitem__with slices to correctly update internal “maxes” index.
0.9.0 (2014-09-17)¶
API Changes
- Added
__ior__,__iand__,__isub__, and__ixor__methods toSortedSetinterface.
Improvements
- Changed position-based indexing to use dense tree-based index.
Miscellaneous
- Added workload-based performance comparison for sorted list: Priority Queue, Multiset, etc.
0.8.5 (2014-08-11)¶
Bugfixes
- Changed copy methods to make shallow copies: values are not copied, only references to values are copied.
Miscellaneous
- Added load-factor performance comparison documentation.
0.8.4 (2014-07-29)¶
API Changes
- Added
value_orderableparameter toSortedListWithKeyto support incomparable value types.
Bugfixes
- Changed
reprmethods to prevent infinite recursion and allow easier subclassing.
0.8.2 (2014-06-13)¶
API Changes
- Added
SortedListWithKeytype with implementation based on(key, value)tuples.
0.8.1 (2014-05-08)¶
Bugfixes
- Added contains-key check in sorted dict equality comparisons.
Miscellaneous
- Added Python runtime comparison to documentation.
- Added sorted dict and set comparison to benchmark documentation.
- Added Travis-CI testing.
0.6.0 (2014-03-18)¶
Miscellaneous
- Added testing support for CPython 2.6, 2.7, 3.2, and 3.3 with full coverage.
0.5.0 (2014-03-14)¶
- Initial release of sorted list, dict, and set types.