Definition at line 5 of file frozendict.py.
◆ __init__()
def frozendict.frozendict.__init__ |
( |
|
self, |
|
|
* |
args, |
|
|
** |
kw |
|
) |
| |
Definition at line 38 of file frozendict.py.
38 def __init__(self, *args, **kw):
◆ __hash__()
def frozendict.frozendict.__hash__ |
( |
|
self | ) |
|
Definition at line 41 of file frozendict.py.
43 return self._cached_hash
44 except AttributeError:
45 h = self._cached_hash =
hash(frozenset(self.items()))
◆ __new__()
def frozendict.frozendict.__new__ |
( |
|
cls, |
|
|
* |
args, |
|
|
** |
kw |
|
) |
| |
Definition at line 13 of file frozendict.py.
13 def __new__(cls, *args, **kw):
14 new = dict.__new__(cls)
18 if isinstance(arg, dict):
20 for k, v
in arg.items():
21 if isinstance(v, dict):
23 elif isinstance(v, list):
26 if isinstance(elm, dict):
35 dict.__init__(new, *args_, **kw)
Referenced by SequenceTypes._ModuleSequenceType.copyAndExclude().
◆ __repr__()
def frozendict.frozendict.__repr__ |
( |
|
self | ) |
|
Definition at line 48 of file frozendict.py.
49 return "frozendict(%s)" % dict.__repr__(self)
◆ _blocked_attribute()
def frozendict.frozendict._blocked_attribute |
( |
|
obj | ) |
|
|
private |
◆ __delitem__
frozendict.frozendict.__delitem__ |
|
staticprivate |
◆ __setitem__
frozendict.frozendict.__setitem__ |
|
staticprivate |
◆ _cached_hash
frozendict.frozendict._cached_hash |
|
private |
◆ clear
frozendict.frozendict.clear |
|
static |
◆ pop
frozendict.frozendict.pop |
|
static |
◆ popitem
frozendict.frozendict.popitem |
|
static |
◆ setdefault
frozendict.frozendict.setdefault |
|
static |
◆ update
frozendict.frozendict.update |
|
static |
◆ _blocked_attribute
frozendict.frozendict._blocked_attribute = property(_blocked_attribute) |
|
staticprivate |