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

Class _values

source code

object --+
         |
        _values


Custom object for accessing the values of an OrderedDict.

Can be called like the normal ``OrderedDict.values`` 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 values method.
source code
 
__getitem__(self, index)
Fetch the value at position i.
source code
 
__setitem__(self, index, value)
Set the value at position i to value.
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)
Reverse the values
source code
 
sort(self, *args, **kwds)
Sort the values.
source code
 
__mul__(self, n) source code
 
__rmul__(self, n) source code
 
__add__(self, other) source code
 
__radd__(self, other) source code
 
__delitem__(self, i) source code
 
__iadd__(self, other) source code
 
__imul__(self, n) source code
 
append(self, item) source code
 
insert(self, i, item) source code
 
pop(self, i=-1) source code
 
remove(self, item) source code
 
extend(self, other) 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)

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

source code 

Set the value at position i to value.

You can only do slice assignment to values if you supply a sequence of
equal length to the slice you are replacing.

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)