]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #19452: Clarify the documentation of iterparse w.r.t. events argument.
authorEli Bendersky <eliben@gmail.com>
Thu, 31 Oct 2013 12:53:39 +0000 (05:53 -0700)
committerEli Bendersky <eliben@gmail.com>
Thu, 31 Oct 2013 12:53:39 +0000 (05:53 -0700)
In 3.3 iterparse accepts a tuple in events (the C accelerator enforces this).
This limitation was lifted in Python 3.4

Doc/library/xml.etree.elementtree.rst

index 86739615ebda246de0f5f9b52fb167c1709be13a..cf652199e3639e48055d384e56473b85bcec56ad 100644 (file)
@@ -379,7 +379,7 @@ Functions
 
    Parses an XML section into an element tree incrementally, and reports what's
    going on to the user.  *source* is a filename or :term:`file object`
-   containing XML data.  *events* is a list of events to report back.  The
+   containing XML data.  *events* is a tuple of events to report back.  The
    supported events are the strings ``"start"``, ``"end"``, ``"start-ns"``
    and ``"end-ns"`` (the "ns" events are used to get detailed namespace
    information).  If *events* is omitted, only ``"end"`` events are reported.