]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Clarify docs too: events can be any sequence (not that the C code supports it)
authorEli Bendersky <eliben@gmail.com>
Sun, 19 May 2013 16:09:24 +0000 (09:09 -0700)
committerEli Bendersky <eliben@gmail.com>
Sun, 19 May 2013 16:09:24 +0000 (09:09 -0700)
Doc/library/xml.etree.elementtree.rst

index 1fae0fe42f92b54a9d73567b038cce707a6974ee..d0bfed0ddaa06ceafa938ac6036bf7ac38e5dea3 100644 (file)
@@ -411,7 +411,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 sequence 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.
@@ -875,8 +875,8 @@ IncrementalParser Objects
 .. class:: IncrementalParser(events=None, parser=None)
 
    An incremental, event-driven parser suitable for non-blocking applications.
-   *events* is a list of events to report back.  The supported events are the
-   strings ``"start"``, ``"end"``, ``"start-ns"`` and ``"end-ns"`` (the "ns"
+   *events* is a sequence 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.  *parser* is an optional
    parser instance.  If not given, the standard :class:`XMLParser` parser is