Trees | Indices | Help |
|
---|
|
object --+ | Stream
Wrap the result of iterparse: * start-ns and end-ns are interpreted, (prefix, uri) pairs being pushed and popped accordingly in attribute `namespaces` * start and end events are accessible through the `event` and `elem` Unlike iterators, a `Stream` has a notion of "current" item (accessible through `event` and `elem`. To access the next element, the `forward` method must be explicitly invoked. If it reaches the end, `event` and `elem` will be None. Note that a `Stream` is also iterable. The first yielded item will be the current item. If the iteration is interrupted, the current item will be the last yielded item.
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
event | |||
elem | |||
Inherited from |
|
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
Push the last item back in the stream. Note that no more than one item can be pushed back. Limitation: this does not change `namespaces` accordingly! |
|
event
|
elem
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Jul 8 16:00:04 2009 | http://epydoc.sourceforge.net |