Package lacewing :: Module multidict :: Class MultikeyDict
[frames] | no frames]

Class MultikeyDict

source code

object --+    
         |    
      dict --+
             |
            MultikeyDict

Instance Methods
new empty dictionary

__init__(self, *arg, **kw)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__getitem__(self, key)
x[y]
source code
 
__delitem__(self, key)
del x[y]
source code
 
__setitem__(self, keys, value)
x[i]=y
source code
list of D's values
values(self) source code
an iterator over the values of D
itervalues(self) source code
 
__len__(self)
len(x)
source code

Inherited from dict: __cmp__, __contains__, __eq__, __ge__, __getattribute__, __gt__, __iter__, __le__, __lt__, __ne__, __new__, __repr__, __sizeof__, clear, copy, fromkeys, get, has_key, iteritems, iterkeys, keys, pop, popitem, setdefault, update, viewitems, viewkeys, viewvalues

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

Class Variables
  items = None
hash(x)

Inherited from dict: __hash__

Properties

Inherited from object: __class__

Method Details

__init__(self, *arg, **kw)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Returns:
new empty dictionary

Overrides: object.__init__
(inherited documentation)

__getitem__(self, key)
(Indexing operator)

source code 

x[y]

Overrides: dict.__getitem__
(inherited documentation)

__delitem__(self, key)
(Index deletion operator)

source code 

del x[y]

Overrides: dict.__delitem__
(inherited documentation)

__setitem__(self, keys, value)
(Index assignment operator)

source code 

x[i]=y

Overrides: dict.__setitem__
(inherited documentation)

values(self)

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

itervalues(self)

source code 
Returns: an iterator over the values of D
Overrides: dict.itervalues
(inherited documentation)

__len__(self)
(Length operator)

source code 

len(x)

Overrides: dict.__len__
(inherited documentation)