]> granicus.if.org Git - python/commit
Close #18990: remove root attribute from XMLPullParser
authorNick Coghlan <ncoghlan@gmail.com>
Sat, 28 Sep 2013 13:50:35 +0000 (23:50 +1000)
committerNick Coghlan <ncoghlan@gmail.com>
Sat, 28 Sep 2013 13:50:35 +0000 (23:50 +1000)
commit4cc2afa0ec54910d60cdc4ca57d886f66c88dc18
tree8c8b730d4d090105ed1831197ed599831cf1bdea
parent33918c128bbc4815f4830b270e23cf7eb83c1038
Close #18990: remove root attribute from XMLPullParser

- this was an internal implementation detail for iterparse
- this has been changed to use a new private method instead
- XMLPullParser.close docs are now more explicit about not
  returning a root element and instead direct users towards
  read_events
- also added missing docstrings and clarified some details
  related to exactly *when* events are consumed from the
  internal queue

(Initial patch by Stefan Behnel)
Doc/library/xml.etree.elementtree.rst
Lib/test/test_xml_etree.py
Lib/xml/etree/ElementTree.py