Changelog¶
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.13.0 (2025-12-23)¶
Added¶
datetime.date,datetime.timedelta,fractions.Fraction,ipaddress.IPv4Address,ipaddress.IPv4Interface,ipaddress.IPv4Network,ipaddress.IPv6Address,ipaddress.IPv6Interface,ipaddress.IPv6Network,pathlib.PosixPath,pathlib.PurePosixPath,pathlib.PureWindowsPath,pathlib.WindowsPath,time.struct_timeanduuid.UUIDas supported key types (#230).
0.12.1 (2025-10-22)¶
Fixed¶
SortedDictconstructor never raisesImportError; if importing a supported key type fails, it is silently demoted to an unsupported key type (#219).
0.12.0 (2025-10-19)¶
Added¶
SortedDictItemsmethod__reversed__;SortedDictItemsRevIterand method__next__;SortedDictmethod__reversed__;SortedDictKeysmethod__reversed__;SortedDictKeysRevIterand method__next__;SortedDictValuesmethod__reversed__; andSortedDictValuesRevIterand method__next__(#210).SortedDictmethod__delitem__raisesRuntimeErrorif there exists an unexhausted reverse iterator which just yielded the key to be deleted.
Changed¶
SortedDictItemsIteris renamed toSortedDictItemsFwdIter;SortedDictKeysIteris renamed toSortedDictKeysFwdIter; andSortedDictValuesIteris renamed toSortedDictValuesFwdIter(#211).
0.11.0 (2025-07-20)¶
Added¶
0.10.0 (2025-07-13)¶
Added¶
Changed¶
0.9.0 (2025-07-05)¶
Added¶
SortedDictmethod__iter__(#179).
0.8.2 (2025-07-04)¶
Changed¶
SortedDictKeysmethod__getitem__creates positive-step slices near the end and negative-step slices near the beginning faster (#175).
0.8.1 (2025-07-04)¶
Fixed¶
SortedDictKeysmethod__getitem__raises the same exceptions aslist.__getitem__(#169).
0.8.0 (2025-07-02)¶
Added¶
SortedDictKeysmethod__getitem__(#163).
Changed¶
SortedDictmethod__len__raisesOverflowErrorif its length exceedsPY_SSIZE_T_MAX(#164).
0.7.3 (2025-06-22)¶
Added¶
SortedDictKeysmethod__contains__(#157).
0.7.2 (2025-06-08)¶
No user-facing changes of note.
0.7.1 (2025-06-05)¶
Fixed¶
SortedDictmethod__setitem__never raisesRuntimeError;SortedDictmethod__delitem__raisesRuntimeErrorif there exists an iterator about to yield the key to be deleted;SortedDictmethodclearraisesRuntimeErrorif there exists any unexhausted iterator over it (#131).
0.7.0 (2025-05-25)¶
Added¶
SortedDictKeysand methods__repr__,__len__and__iter__; andSortedDictKeysIterand method__next__(#120).SortedDictmethods__setitem__,__delitem__andclearraiseRuntimeErrorif called while iterating over a view.
Changed¶
SortedDictmethodkeysreturns a view (SortedDictKeys) instead of a list (#120).
0.6.0 (2025-05-18)¶
Changed¶
SortedDictconstructor checks whether the supported key type it imported is actually a type, and describes the problem more clearly in the exception message in case of failure (84830cb2d98a).SortedDictmethod__contains__raises the same exceptions as__getitem__(exceptKeyError) instead of silently returningFalsein case of errors (#118).
0.5.3 (2025-05-17)¶
No user-facing changes of note.
0.5.2 (2025-05-17)¶
Fixed¶
SortedDictconstructor always raisesImportErrorupon failure to import supported key types which are not built-in instead of relying on the exception raised by the import machinery (#111).
0.5.1 (2025-05-17)¶
No user-facing changes of note.
0.5.0 (2025-05-16)¶
Added¶
decimal.Decimalas a supported key type (#102).
0.4.6 (2025-05-15)¶
No user-facing changes of note.
0.4.5 (2025-05-14)¶
Fixed¶
SortedDictmethods__delitem__and__setitem__raiseRuntimeErrorinstead ofValueErrorwhen the key type is not set (#95).
0.4.4 (2025-05-11)¶
Changed¶
Indexing a
SortedDictinstance with invalid keys shows the key and its type in the exception message (#91).
0.4.3 (2025-05-11)¶
No user-facing changes of note.
0.4.2 (2025-05-07)¶
No user-facing changes of note.
0.4.1 (2025-05-01)¶
No user-facing changes of note.
0.4.0 (2025-05-01)¶
Added¶
0.3.0 (2025-04-27)¶
Added¶
Changed¶
SortedDictconstructor ignores all arguments;SortedDictmethod__setitem__sets the key type upon succeeding for the first time (#47).
Removed¶
SortedDictmethod__str__(#49).
0.2.1 (2024-12-14)¶
No user-facing changes of note.
0.2.0 (2024-12-14)¶
Added¶
SortedDictmethodcopy(#36).
0.1.0 (2024-12-01)¶
Added¶
0.0.8 (2024-11-28)¶
Fixed¶
SortedDictconstructor raisesTypeErrorinstead ofValueErrorwhen it receives an unsupported type, and treats subclasses of supported types as unsupported;SortedDictmethod__setitem__rejects instances of subclasses of the key type (#22).
0.0.7 (2024-11-27)¶
No user-facing changes of note.
0.0.6 (2024-11-24)¶
No user-facing changes of note.
0.0.5 (2024-11-23)¶
No user-facing changes of note.
0.0.4 (2024-11-23)¶
Added¶
SortedDictand its constructor accepting the key type, which must beint(8ef0310913b4).SortedDictdestructor (#1).SortedDictmethods__len__,__getitem__,__setitem__,__delitem__and__str__(#2).__setitem__rejects a key if it is not a subclass of what was passed to the constructor.
SortedDictmethodsitems,keysandvalues(#3).All three return lists, not views.