[Python-checkins] cpython (merge 3.3 -> default): Clarify pyexpat documentation in StartElementHandler
eli.bendersky
python-checkins at python.org
Mon Aug 26 04:06:26 CEST 2013
http://hg.python.org/cpython/rev/482590320549
changeset: 85410:482590320549
parent: 85408:022bd6cd6c79
parent: 85409:bf2214d506d3
user: Eli Bendersky <eliben at gmail.com>
date: Sun Aug 25 19:06:16 2013 -0700
summary:
Clarify pyexpat documentation in StartElementHandler
files:
Doc/library/pyexpat.rst | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/Doc/library/pyexpat.rst b/Doc/library/pyexpat.rst
--- a/Doc/library/pyexpat.rst
+++ b/Doc/library/pyexpat.rst
@@ -339,8 +339,10 @@
.. method:: xmlparser.StartElementHandler(name, attributes)
Called for the start of every element. *name* is a string containing the
- element name, and *attributes* is a dictionary mapping attribute names to their
- values.
+ element name, and *attributes* is the element attributes. If
+ :attr:`ordered_attributes` is true, this is a list (see
+ :attr:`ordered_attributes` for a full description). Otherwise it's a
+ dictionary mapping names to values.
.. method:: xmlparser.EndElementHandler(name)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list