| Trees | Index | Help |
|
|---|
|
|
object --+
|
_keys
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.
|
|||
|
__init__(self,
main)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
|||
|
__call__(self)
Pretend to be the keys method. |
|||
|
__getitem__(self,
index)
Fetch the key at position i. |
|||
|
__setitem__(self,
index,
name)
You cannot assign to keys, but you can do slice assignment to re-order them. |
|||
|
__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) | |||
| __delitem__(self, i) | |||
| __iadd__(self, other) | |||
| __imul__(self, n) | |||
| append(self, item) | |||
| insert(self, i, item) | |||
| pop(self, i=-1) | |||
| remove(self, item) | |||
| extend(self, other) | |||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
|
|
|
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. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Trees | Index | Help |
|
|---|
| Generated by Epydoc 3.0alpha2 on Sat Apr 29 11:03:38 2006 | http://epydoc.sf.net |