From: Eli Bendersky Date: Sun, 4 Aug 2013 01:52:32 +0000 (-0700) Subject: Issue #17902: Clarify doc of ElementTree.iterparse X-Git-Tag: v3.4.0a2~308^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ca97fd305394d48c0050cd230ce41a057fd71636;p=thirdparty%2FPython%2Fcpython.git Issue #17902: Clarify doc of ElementTree.iterparse --- diff --git a/Doc/library/xml.etree.elementtree.rst b/Doc/library/xml.etree.elementtree.rst index 45a0e7b308f9..00cdacda59f1 100644 --- a/Doc/library/xml.etree.elementtree.rst +++ b/Doc/library/xml.etree.elementtree.rst @@ -384,7 +384,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. 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::