Custom object for accessing the keys of an OrderedDict.
|
|
__init__(self,
main)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
source code
|
|
|
|
__call__(self)
Pretend to be the keys method. |
source code
|
|
|
|
__getitem__(self,
index)
Fetch the key at position i. |
source code
|
|
|
|
__setitem__(self,
index,
name)
You cannot assign to keys, but you can do slice assignment to re-order
them. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|