AlphaDict
Provides AlphaDict, a frozen OrderedDict where the keys are stored alphabetically.
Classes:
|
Initialize an immutable, alphabetised dictionary. |
Functions:
|
Returns an |
-
class
AlphaDict(seq=None, **kwargs)[source] Bases:
FrozenOrderedDict[~KT,~VT]Initialize an immutable, alphabetised dictionary.
The signature is the same as regular dictionaries.
-
alphabetical_dict(**kwargs)[source] Returns an
OrderedDictwith the keys sorted alphabetically.- Parameters
**kwargs (
~T) – Keyword arguments to construct dict from.- Return type
OrderedDict[str,~T]