diff options
author | Eli Bendersky <eliben@gmail.com> | 2013-10-31 12:53:39 (GMT) |
---|---|---|
committer | Eli Bendersky <eliben@gmail.com> | 2013-10-31 12:53:39 (GMT) |
commit | 2915dd7103730580a63760a8b4166d2137666920 (patch) | |
tree | a52b75d2d1df4e50667977700216e28ab714b549 /Doc | |
parent | 7f69dcac166abc21dc762e07fdf6a338520ee2e6 (diff) | |
download | cpython-2915dd7103730580a63760a8b4166d2137666920.zip cpython-2915dd7103730580a63760a8b4166d2137666920.tar.gz cpython-2915dd7103730580a63760a8b4166d2137666920.tar.bz2 |
Issue #19452: Clarify the documentation of iterparse w.r.t. events argument.
In 3.3 iterparse accepts a tuple in events (the C accelerator enforces this).
This limitation was lifted in Python 3.4
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/xml.etree.elementtree.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/xml.etree.elementtree.rst b/Doc/library/xml.etree.elementtree.rst index 8673961..cf65219 100644 --- a/Doc/library/xml.etree.elementtree.rst +++ b/Doc/library/xml.etree.elementtree.rst @@ -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. |