Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ca4d97e

Browse files
committed
Clarify pyexpat documentation in StartElementHandler
1 parent 7c4a7e6 commit ca4d97e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Doc/library/pyexpat.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,8 +339,10 @@ otherwise stated.
339339
.. method:: xmlparser.StartElementHandler(name, attributes)
340340

341341
Called for the start of every element. *name* is a string containing the
342-
element name, and *attributes* is a dictionary mapping attribute names to their
343-
values.
342+
element name, and *attributes* is the element attributes. If
343+
:attr:`ordered_attributes` is true, this is a list (see
344+
:attr:`ordered_attributes` for a full description). Otherwise it's a
345+
dictionary mapping names to values.
344346

345347

346348
.. method:: xmlparser.EndElementHandler(name)

0 commit comments

Comments
 (0)