summaryrefslogtreecommitdiff
path: root/Lib/xml
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2014-01-04 23:52:50 -0500
committerR David Murray <rdmurray@bitdance.com>2014-01-04 23:52:50 -0500
commit410d320703313b6a303094b8355ae7cc1f0196f6 (patch)
treeafeaab503d68b01b002889d08115706085b26e96 /Lib/xml
parentaed5b22ead9127103cea2de8722d36b90a320142 (diff)
downloadcpython-git-410d320703313b6a303094b8355ae7cc1f0196f6.tar.gz
whatsnew: XMLPullParser, plus some doc updates.
I was confused by the text saying that read_events "iterated", since it actually returns an iterator (that's what a generator does) that the caller must then iterate. So I tidied up the language. I'm not sure what the sentence "Events provided in a previous call to read_events() will not be yielded again." is trying to convey, so I didn't try to fix that. Also fixed a couple more news items.
Diffstat (limited to 'Lib/xml')
-rw-r--r--Lib/xml/etree/ElementTree.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/xml/etree/ElementTree.py b/Lib/xml/etree/ElementTree.py
index cab415cb3b..d9e98078c8 100644
--- a/Lib/xml/etree/ElementTree.py
+++ b/Lib/xml/etree/ElementTree.py
@@ -1251,7 +1251,7 @@ class XMLPullParser:
self._close_and_return_root()
def read_events(self):
- """Iterate over currently available (event, elem) pairs.
+ """Return an iterator over currently available (event, elem) pairs.
Events are consumed from the internal event queue as they are
retrieved from the iterator.