Changelog¶
0.12.1¶
- #219 Allow using a sorted dictionary even if
importing
decimal.Decimalfails.
0.12.0¶
- #210 Define
SortedDictItems.__reversed__. DefineSortedDictItemsRevIteras a reverse iterator over the values of a sorted dictionary. DefineSortedDictItemsRevIter.__next__. DefineSortedDictKeys.__reversed__andSortedDict.__reversed__. DefineSortedDictKeysRevIteras a reverse iterator over the keys of a sorted dictionary. DefineSortedDictKeysRevIter.__next__. DefineSortedDictValues.__reversed__. DefineSortedDictValuesRevIteras a reverse iterator over the values of a sorted dictionary. DefineSortedDictValuesRevIter.__next__.
- #205 Add homepage build dependencies to project metadata.
- #211 Rename
SortedDictItemsItertoSortedDictItemsFwdIter,SortedDictKeysItertoSortedDictKeysFwdIterandSortedDictValuesItertoSortedDictValuesFwdIter.
0.11.0¶
- #196 Define
SortedDict.getto return the value mapped to a key or a specified default. - #198 Define
SortedDict.setdefaultto return the value mapped to a key or a specified default and map that default to the key.
- 8fe14d796917 Add optional testing dependencies to project metadata.
- #197 Define
SortedDictItems.__contains__.
0.10.0¶
- #184 Define
SortedDictValuesas a view over the values of a sorted dictionary. DefineSortedDictValues.__repr__,SortedDictValues.__len__,SortedDictValues.__getitem__andSortedDictValues.__iter__. DefineSortedDictValuesIteras an iterator over the values of a sorted dictionary. DefineSortedDictValuesIter.__iter__andSortedDictValuesIter.__next__. UpdateSortedDict.valuesto return the aforementioned view. - #187 Define
SortedDictItemsas a view over the items of a sorted dictionary. DefineSortedDictItems.__repr__,SortedDictItems.__len__,SortedDictItems.__getitem__andSortedDictItems.__iter__. DefineSortedDictItemsIteras an iterator over the items of a sorted dictionary. DefineSortedDictItemsIter.__iter__andSortedDictItemsIter.__next__. UpdateSortedDict.itemsto return the aforementioned view.
0.9.0¶
- #179 Define
SortedDict.__iter__.
0.8.2¶
- #175 Update
SortedDictKeys.__getitem__to speed up the creation of a positive slice near the end or a negative slice near the beginning.
0.8.1¶
- #169 Update
SortedDictKeys.__getitem__to raise the same errorslist.__getitem__raises.
0.8.0¶
- #163 Define
SortedDictKeys.__getitem__.
- #164 Update
SortedDict.__len__to raiseOverflowErrorif the length exceeds the maximum value aPy_ssize_tcan have.
0.7.3¶
0.7.2¶
- #141 Add changelog link to project metadata.
0.7.1¶
- #131 Allow most modifications to a sorted dictionary while iterating over its keys. Prohibit deleting the key any iterator is about to yield next. Prohibit clearing the sorted dictionary when any unexhausted iterators exist.
0.7.0¶
- #120 Define
SortedDictKeysas a view over the keys of a sorted dictionary. DefineSortedDictKeys.__repr__,SortedDictKeys.__len__andSortedDictKeys.__iter__. DefineSortedDictKeysIteras an iterator over the keys of a sorted dictionary. DefineSortedDictKeysIter.__iter__andSortedDictKeysIter.__next__. UpdateSortedDict.keysto return the aforementioned view. Prohibit modifications to a sorted dictionary while iterating over its keys.
0.6.0¶
- 84830cb2d98a
Update the check for the import of
decimal.Decimalwith type verification. Change the error message to reflect that importing the type failed. - #118 Update
SortedDict.__contains__to raise the same errorsSortedDict.__getitem__raises (excludingKeyError) instead of silently returningFalse.
0.5.3¶
- 61c6d76c88c2 Add GitHub links to project metadata.
0.5.2¶
- 6bf7bbdef8cb Remove GitHub links from project metadata.
- #111 Change the error message about failure to import Python types which are not built-in to report the problem more precisely.
0.5.1¶
No user-facing changes of note.
0.5.0¶
- #102 Support
decimal.Decimalkeys. Prohibit the insertion of a key if it is NaN.
- 8c145e38eb98 Add GitHub and homepage links to project metadata.
0.4.6¶
No user-facing changes of note.
0.4.5¶
- #95 Change the type of the error raised when the key
type is not set from
ValueErrortoRuntimeError. Add documentation link to project metadata.
0.4.4¶
- #91 Change error messages to provide actionable information.
0.4.3¶
No user-facing changes of note.
0.4.2¶
No user-facing changes of note.
0.4.1¶
- #75 Include the C++ header files from the project in the source and built distributions.
0.4.0¶
0.3.0¶
- #55 Support
bytesandstrkeys.
0.2.1¶
No user-facing changes of note.
0.2.0¶
- #36 Define
SortedDict.copyto return a shallow copy of a sorted dictionary.
0.1.0¶
0.0.8¶
- #22 Change the type of the error raised when the
constructor argument is an unsupported type from
ValueErrortoTypeError. Prohibit subclasses of supported key types. UpdateSortedDict.__str__andSortedDict.itemsto raise allocation errors.
0.0.7¶
- e377dc4266f6 Add intended audience, supported operating systems and targeted Python implementations to project metadata.
0.0.6¶
No user-facing changes of note.
0.0.5¶
No user-facing changes of note.
0.0.4¶
- 8ef0310913b4
Define
SortedDict. Define theSortedDictconstructor to accept the key type, which must beint. - #1 Define the
SortedDictdestructor. - #2 Define
SortedDict.__len__,SortedDict.__getitem__,SortedDict.__setitem__,SortedDict.__delitem__andSortedDict.__str__. Prohibit insertion of a key if its type is not a subclass of what was passed to the constructor. - #3 Define
SortedDict.items,SortedDict.keysandSortedDict.valuesto return lists (not views) containing the key-value pairs, keys and values in a sorted dictionary.