mirror of
https://github.com/python/cpython.git
synced 2025-07-23 19:25:40 +00:00
Issue #17902: Clarify doc of ElementTree.iterparse
This commit is contained in:
parent
2acc525a97
commit
ca97fd3053
1 changed files with 2 additions and 1 deletions
|
@ -384,7 +384,8 @@ Functions
|
||||||
and ``"end-ns"`` (the "ns" events are used to get detailed namespace
|
and ``"end-ns"`` (the "ns" events are used to get detailed namespace
|
||||||
information). If *events* is omitted, only ``"end"`` events are reported.
|
information). If *events* is omitted, only ``"end"`` events are reported.
|
||||||
*parser* is an optional parser instance. If not given, the standard
|
*parser* is an optional parser instance. If not given, the standard
|
||||||
:class:`XMLParser` parser is used. Returns an :term:`iterator` providing
|
:class:`XMLParser` parser is used. *parser* can only use the default
|
||||||
|
:class:`TreeBuilder` as a target. Returns an :term:`iterator` providing
|
||||||
``(event, elem)`` pairs.
|
``(event, elem)`` pairs.
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue