Eli Bendersky <eli...@gmail.com> added the comment:

I don't think this is an enhancement to ET, because ET was not designed to be a 
streaming parser, which is what is required here. ET was designed to read a 
whole valid XML document. There is 'iterparse', as Antoine mentioned, but it is 
designed to "track changes to the tree while it is being built" - mostly to 
save memory.

You have streaming XML parsers in Python - for example xml.sax. You can also 
relatively easily use xml.sax to find the end of your document and then parse 
the buffer with ET.

I don't see how a comparison with Parsec (a parser generator/DSL library) makes 
sense. There are tons of such libraries for Python - just pick one.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14852>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to