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
OrderedDict
with the keys sorted alphabetically.- Parameters
kwargs