This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ImmutableDict: | |
"""A tuple with non-index keys""" | |
def __init__(self, dict): | |
self._keys = tuple(dict.keys()) | |
self._values = tuple(dict.values()) | |
def __len__(self): | |
return len(self._keys) |
NewerOlder