PyPedal::odict::_keys Class Reference

List of all members.

Public Member Functions

def __init__
def __call__
def __getitem__
def __setitem__
def __repr__
def __lt__
def __le__
def __eq__
def __ne__
def __gt__
def __ge__
def __cmp__
def __contains__
def __len__
def __iter__
def count
def index
def reverse
def sort
def __mul__
def __add__
def __radd__
def __delitem__
 following methods not implemented for keys ##
def __iadd__
def __imul__
def append
def insert
def pop
def remove
def extend


Detailed Description

Custom object for accessing the keys of an OrderedDict.

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

Definition at line 859 of file odict.py.


Member Function Documentation

def PyPedal::odict::_keys::__call__ (   self  ) 

Pretend to be the keys method.

Definition at line 872 of file odict.py.

def PyPedal::odict::_keys::__getitem__ (   self,
  index 
)

Fetch the key at position i.

Definition at line 876 of file odict.py.

def PyPedal::odict::_keys::__setitem__ (   self,
  index,
  name 
)

You cannot assign to keys, but you can do slice assignment to re-order
them.

You can only do slice assignment if the new set of keys is a reordering
of the original set.

Definition at line 881 of file odict.py.


The documentation for this class was generated from the following file:

Generated on Thu May 1 12:33:43 2008 for PyPedal by  doxygen 1.5.5