[Python-checkins] cpython (3.3): Issue #17902: Clarify doc of ElementTree.iterparse
eli.bendersky
python-checkins at python.org
Sun Aug 4 03:55:31 CEST 2013
http://hg.python.org/cpython/rev/a5a5ba4f71ad
changeset: 85007:a5a5ba4f71ad
branch: 3.3
parent: 85005:854ded9135c2
user: Eli Bendersky <eliben at gmail.com>
date: Sat Aug 03 18:52:32 2013 -0700
summary:
Issue #17902: Clarify doc of ElementTree.iterparse
files:
Doc/library/xml.etree.elementtree.rst | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Doc/library/xml.etree.elementtree.rst b/Doc/library/xml.etree.elementtree.rst
--- a/Doc/library/xml.etree.elementtree.rst
+++ b/Doc/library/xml.etree.elementtree.rst
@@ -384,7 +384,8 @@
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. Returns an :term:`iterator` providing
+ :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::
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list