Package pythonutils :: 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 x.__class__.__doc__ for signature
  __call__(self)
Pretend to be the items method.
  __getitem__(self, index)
Fetch the item at position i.
  __setitem__(self, index, item)
Set item at position i to item.
  __delitem__(self, i)
Delete the item at position i.
  __repr__(self)
repr(x)
  __lt__(self, other)
  __le__(self, other)
  __eq__(self, other)
  __ne__(self, other)
  __gt__(self, other)
  __ge__(self, other)
  __cmp__(self, other)
  __contains__(self, item)
  __len__(self)
  __iter__(self)
  count(self, item)
  index(self, item, *args)
  reverse(self)
  sort(self, *args, **kwds)
  __mul__(self, n)
  __rmul__(self, n)
  __add__(self, other)
  __radd__(self, other)
  append(self, item)
Add an item to the end.
  insert(self, i, item)
  pop(self, i=-1)
  remove(self, item)
  extend(self, other)
  __iadd__(self, other)
  __imul__(self, n)

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


Class Variables [hide private]

Inherited from object: __class__


Method Details [hide private]

__init__(self, main)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

__call__(self)
(Call operator)

source code 
Pretend to be the items method.

__getitem__(self, index)
(Indexing operator)

source code 
Fetch the item at position i.

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

source code 
Set item at position i to item.

__delitem__(self, i)
(Index deletion operator)

source code 
Delete the item at position i.

__repr__(self)
(Representation operator)

source code 
repr(x)
Overrides: object.__repr__
(inherited documentation)

__lt__(self, other)
(Less-than operator)

source code 

__le__(self, other)
(Less-than-or-equals operator)

source code 

__eq__(self, other)
(Equality operator)

source code 

__ne__(self, other)

source code 

__gt__(self, other)
(Greater-than operator)

source code 

__ge__(self, other)
(Greater-than-or-equals operator)

source code 

__cmp__(self, other)
(Comparison operator)

source code 

__contains__(self, item)
(In operator)

source code 

__len__(self)
(Length operator)

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)
(Addition operator)

source code 

__radd__(self, other)
(Right-side addition operator)

source code 

append(self, item)

source code 
Add an item to the end.

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