| Home | Trees | Index | Help |
|
|---|
| Package corebio :: Package utils :: Class Reiterate |
|
object --+
|
Reiterate
A flexible wrapper around a simple iterator.
| Method Summary | |
|---|---|
__init__(self,
*args,
**kw)
| |
__iter__(self)
| |
__new__(cls,
iterator)
(Static method) | |
Return the next item in the iteration that satisifed the predicate. | |
More items to return?... | |
The number of items returned. | |
Return the next item in the iteration. | |
Returns the next item, but does not advance the iteration. | |
Push an item back onto the top of the iterator,... | |
| Inherited from object | |
x.__delattr__('name') <==> del x.name... | |
x.__getattribute__('name') <==> x.name... | |
x.__hash__() <==> hash(x)... | |
helper for pickle... | |
helper for pickle... | |
x.__repr__() <==> repr(x)... | |
x.__setattr__('name', value) <==> x.name = value... | |
x.__str__() <==> str(x)... | |
| Instance Method Details |
|---|
filter(self, predicate)Return the next item in the iteration that satisifed the predicate. |
has_item(self)More items to return? |
index(self)The number of items returned. Incremented by next(), Decremented by push(), unchanged by peek() |
next(self)Return the next item in the iteration. |
peek(self)Returns the next item, but does not advance the iteration. Returns None if no more items. (Bit may also return None as the next item.) |
push(self, item)Push an item back onto the top of the iterator, |
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on | http://epydoc.sf.net |