Home | Trees | Indices | Help |
|
---|
|
object --+ | iterparse
iterates over start, data, and end events in source.
To keep things simple downstream, we swallow all namespace prefixes, if present.
iterparse is constructed with a source (anything that can read(source)) and optionally a custom error class. This error class needs to have the message as the first argument. Since expat error messages usually contain line number and column in them, no extra pos attribute is supported.
Since the parser typically is far ahead of the events seen, we do our own bookkeeping by storing the parser position with each event. The *end* of the construct that caused an event can be retrieved using pos.
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
Class Variables | |
chunkSize = 1048576 The number of bytes handed to expat from iterparse at one go. |
Properties | |
pos | |
Inherited from |
Method Details |
x.__init__(...) initializes x; see help(type(x)) for signature
|
Property Details |
pos
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu May 2 07:29:09 2019 | http://epydoc.sourceforge.net |