[Python-checkins] cpython: Clarify docs too: events can be any sequence (not that the C code supports it)
eli.bendersky
python-checkins at python.org
Sun May 19 18:09:32 CEST 2013
http://hg.python.org/cpython/rev/75a8b9c60523
changeset: 83844:75a8b9c60523
user: Eli Bendersky <eliben at gmail.com>
date: Sun May 19 09:09:24 2013 -0700
summary:
Clarify docs too: events can be any sequence (not that the C code supports it)
files:
Doc/library/xml.etree.elementtree.rst | 6 +++---
1 files changed, 3 insertions(+), 3 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
@@ -411,7 +411,7 @@
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 @@
.. 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
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list