Eidolon
|
Inherits MutableMapping, and dict.
Public Member Functions | |
def | __init__ (self, pairs, kwargs) |
def | __len__ (self) |
def | __iter__ (self) |
def | __contains__ (self, key) |
def | __getitem__ (self, key) |
def | __setitem__ (self, key, value) |
def | __delitem__ (self, key) |
def | values (self) |
def | items (self) |
def | keys (self) |
Public Attributes | |
realkeys | |
Implements a dictionary with the same interface as dict which allows mutable keys. These are stored internally and the actual dict implementation uses the values returned by id() as keys, which is a value assumed never to change throughout an object's life so mutability isn't a concern for correctness.
def __init__ | ( | self, | |
pairs, | |||
kwargs | |||
) |
def __contains__ | ( | self, | |
key | |||
) |
def __delitem__ | ( | self, | |
key | |||
) |
def __getitem__ | ( | self, | |
key | |||
) |
def __iter__ | ( | self | ) |
def __len__ | ( | self | ) |
def __setitem__ | ( | self, | |
key, | |||
value | |||
) |
def items | ( | self | ) |
def keys | ( | self | ) |
def values | ( | self | ) |
realkeys |