[issue18990] Return root element from ElementTree.XMLPullParser.close() to match ElementTree.XMLParser

Stefan Behnel report at bugs.python.org
Fri Sep 20 07:59:23 CEST 2013


Stefan Behnel added the comment:

I'm not entirely happy about the docs anyway. Most people just want to loop over iterparse() and be done (use case being to save memory). The new parser class is a rather special and more complex thing that we shouldn't let innocent users run into that easily. But that's a different ticket, I guess, and in no way time critical.

I can't see a reference to "parser.root" in the ElementTree doc page, BTW, so maybe there's just nothing to do there?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18990>
_______________________________________


More information about the Python-bugs-list mailing list