mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
Clarify pyexpat documentation in StartElementHandler
This commit is contained in:
commit
8d26a56f3e
1 changed files with 4 additions and 2 deletions
|
@ -339,8 +339,10 @@ otherwise stated.
|
||||||
.. method:: xmlparser.StartElementHandler(name, attributes)
|
.. method:: xmlparser.StartElementHandler(name, attributes)
|
||||||
|
|
||||||
Called for the start of every element. *name* is a string containing the
|
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
|
element name, and *attributes* is the element attributes. If
|
||||||
values.
|
: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)
|
.. method:: xmlparser.EndElementHandler(name)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue