[issue18990] Return root element from ElementTree.XMLPullParser.close() to match ElementTree.XMLParser
Stefan Behnel
report at bugs.python.org
Fri Sep 27 07:40:12 CEST 2013
Stefan Behnel added the comment:
Here's the obvious minimal patch that removes the non-public 'root' attribute. Please apply it for Py3.4 and then set the version tag of this ticket to Py3.5 (instead of closing it, because it's not resolved yet).
As I said, the expected thing to do (and what lxml.etree will do in its next release) is to behave like XMLParser. Reverting the new patch for Py3.5 and applying the old one will achieve that nicely, including the proper test adaptations.
----------
Added file: http://bugs.python.org/file31880/xmlpullparser_remove_public_root_attr.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18990>
_______________________________________
More information about the Python-bugs-list
mailing list