Package slumMaya :: Module classNode :: Class classNode :: Class _dict
[hide private]
[frames] | no frames]

Class _dict

source code

object --+    
         |    
      dict --+
             |
            classNode._dict

_classNode = classNode that own this data key = original key(attr) in the classnode index = all the keys that are needed to get to this data from the original classNode attr(list)

Instance Methods [hide private]
 
____updateFromClassNode(self) source code
 
____updateToClassNode(self) source code
new empty dictionary

__init__(self, _classNode, key, index=[])
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__setitem__(self, key, item)
x[i]=y
source code
None
update(self, data, callingFromClassNode=False)
Update D from dict/iterable E and F.
source code
 
__delitem__(self, key)
del x[y]
source code
 
__getitem__(self, key)
x[y]
source code
 
__repr__(self)
repr(x)
source code
 
__len__(self)
len(x)
source code
list of D's keys
keys(self) source code
True if D has a key k, else False
has_key(self, f) source code

Inherited from dict: __cmp__, __contains__, __eq__, __ge__, __getattribute__, __gt__, __iter__, __le__, __lt__, __ne__, __new__, __sizeof__, clear, copy, fromkeys, get, items, iteritems, iterkeys, itervalues, pop, popitem, setdefault, values

Inherited from object: __delattr__, __format__, __reduce__, __reduce_ex__, __setattr__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from dict: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, _classNode, key, index=[])
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Returns:
new empty dictionary

Overrides: object.__init__
(inherited documentation)

__setitem__(self, key, item)
(Index assignment operator)

source code 

x[i]=y

Overrides: dict.__setitem__
(inherited documentation)

update(self, data, callingFromClassNode=False)

source code 

Update D from dict/iterable E and F. If E has a .keys() method, does: for k in E: D[k] = E[k] If E lacks .keys() method, does: for (k, v) in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k]

Returns: None
Overrides: dict.update
(inherited documentation)

__delitem__(self, key)
(Index deletion operator)

source code 

del x[y]

Overrides: dict.__delitem__
(inherited documentation)

__getitem__(self, key)
(Indexing operator)

source code 

x[y]

Overrides: dict.__getitem__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

__len__(self)
(Length operator)

source code 

len(x)

Overrides: dict.__len__
(inherited documentation)

keys(self)

source code 
Returns: list of D's keys
Overrides: dict.keys
(inherited documentation)

has_key(self, f)

source code 
Returns: True if D has a key k, else False
Overrides: dict.has_key
(inherited documentation)