Home | Trees | Index | Help |
|
---|
Package eggbasket :: Module odict :: Class Keys |
|
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.
Method Summary | |
---|---|
__init__(self,
main)
| |
__add__(self,
other)
| |
Pretend to be the keys method. | |
__cmp__(self,
other)
| |
__contains__(self,
item)
| |
__delitem__(self,
i)
| |
__eq__(self,
other)
| |
__ge__(self,
other)
| |
Fetch the key at position i. | |
__gt__(self,
other)
| |
__iadd__(self,
other)
| |
__imul__(self,
n)
| |
__iter__(self)
| |
__le__(self,
other)
| |
__len__(self)
| |
__lt__(self,
other)
| |
__mul__(self,
n)
| |
__ne__(self,
other)
| |
__radd__(self,
other)
| |
__repr__(self)
| |
__rmul__(self,
n)
| |
You cannot assign to keys, but you can do slice assignment to re-order them. | |
append(self,
item)
| |
count(self,
item)
| |
extend(self,
other)
| |
index(self,
item,
*args)
| |
insert(self,
i,
item)
| |
pop(self,
i)
| |
remove(self,
item)
| |
reverse(self)
| |
sort(self,
*args,
**kwds)
| |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) |
Method Details |
---|
__call__(self)
|
__getitem__(self,
index)
|
__setitem__(self,
index,
name)
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Tue Apr 15 17:16:46 2008 | http://epydoc.sf.net |