This class implements the mapping (dict) interface. It uses a simple
list to store its data and sequential search to access it. It does not
depend on __hash__() to manage contained objects. (See Python Reference
Manual Chapter 3.3)
The actual data is stored in self.data as a list of tuples like (key,
value).
See the docstring of orm2.sql._part for details on why this is
here.
|
__init__(self,
initdata=[])
|
|
__len__(self)
|
|
__getitem__(self,
which)
|
|
__setitem__(self,
which,
what)
|
|
__delitem__(self,
which)
|
|
__iter__(self)
|
|
__contains__(self,
which)
|
|
__cmp__(self,
other)
|
|
__eq__(self,
other)
|
|
__repr__(self)
|
|
clear(self)
|
|
copy(self)
|
|
get(self,
which,
default=None)
|
|
has_key(self,
which)
|
|
items(self)
|
|
iteritems(self)
|
|
iterkeys(self)
|
|
itervalues(self)
|
|
keys(self)
|
|
values(self)
|
|
pop(self)
|
|
popitem(self)
|
|
setdefault(self,
default)
|
|
update(self,
other)
Other must implement the mapping (i.e.
|