Changelog¶
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
SortedDictKeys
as a view over the keys of a sorted dictionary. DefineSortedDictKeys.__repr__
,SortedDictKeys.__len__
andSortedDictKeys.__iter__
. DefineSortedDictKeysIter
as an iterator over the keys of a sorted dictionary. DefineSortedDictKeysIter.__iter__
andSortedDictKeysIter.__next__
. UpdateSortedDict.keys
to 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.Decimal
with 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.Decimal
keys. 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
ValueError
toRuntimeError
. 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
bytes
andstr
keys.
0.2.1¶
No user-facing changes of note.
0.2.0¶
- #36 Define
SortedDict.copy
to 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
ValueError
toTypeError
. Prohibit subclasses of supported key types. UpdateSortedDict.__str__
andSortedDict.items
to 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 theSortedDict
constructor to accept the key type, which must beint
. - #1 Define the
SortedDict
destructor. - #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.keys
andSortedDict.values
to return lists (not views) containing the key-value pairs, keys and values in a sorted dictionary.