Package iceprod :: Package core :: Module odict :: Class _items
[hide private]
[frames] | no frames]

Class _items

source code

object --+
         |
        _items


Custom object for accessing the items of an OrderedDict.

Can be called like the normal ``OrderedDict.items`` method, but also
supports indexing and sequence methods.

Instance Methods [hide private]
 
__init__(self, main)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__call__(self)
Pretend to be the items method.
source code
 
__getitem__(self, index)
Fetch the item at position i.
source code
 
__setitem__(self, index, item)
Set item at position i to item.
source code
 
__delitem__(self, i)
Delete the item at position i.
source code
 
__repr__(self)
repr(x)
source code
 
__lt__(self, other) source code
 
__le__(self, other) source code
 
__eq__(self, other) source code
 
__ne__(self, other) source code
 
__gt__(self, other) source code
 
__ge__(self, other) source code
 
__cmp__(self, other) source code
 
__contains__(self, item) source code
 
__len__(self) source code
 
__iter__(self) source code
 
count(self, item) source code
 
index(self, item, *args) source code
 
reverse(self) source code
 
sort(self, *args, **kwds) source code
 
__mul__(self, n) source code
 
__rmul__(self, n) source code
 
__add__(self, other) source code
 
__radd__(self, other) source code
 
append(self, item)
Add an item to the end.
source code
 
insert(self, i, item) source code
 
pop(self, i=-1) source code
 
remove(self, item) source code
 
extend(self, other) source code
 
__iadd__(self, other) source code
 
__imul__(self, n) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, main)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)