cpython: 96f45011957e (original) (raw)
Mercurial > cpython
changeset 85008:96f45011957e
Issue #17902: Clarify doc of ElementTree.iterparse and IncrementalParser Based on patch by Aaron Oakley [#17902]
Eli Bendersky eliben@gmail.com | |
---|---|
date | Sat, 03 Aug 2013 18:55:10 -0700 |
parents | ce0be0d03c0a(current diff)a5a5ba4f71ad(diff) |
children | 77558617b2ba |
files | Doc/library/xml.etree.elementtree.rst |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-)[+] [-] Doc/library/xml.etree.elementtree.rst 5 |
line wrap: on
line diff
--- a/Doc/library/xml.etree.elementtree.rst
+++ b/Doc/library/xml.etree.elementtree.rst
@@ -416,7 +416,8 @@ Functions
and "end-ns"
(the "ns" events are used to get detailed namespace
information). If events is omitted, only "end"
events are reported.
parser is an optional parser instance. If not given, the standard
- :class:
XMLParser
parser is used. parser can only use the default - :class:
TreeBuilder
as a target. Returns an :term:iterator
providing(event, elem)
pairs. Note that while :func:iterparse
builds the tree incrementally, it issues @@ -880,7 +881,7 @@ IncrementalParser Objects events are used to get detailed namespace information). If events is omitted, only"end"
events are reported. parser is an optional parser instance. If not given, the standard :class:XMLParser
parser is