[Python-checkins] cpython (3.3): Fix: Element.text is an attribute, not a method (report by Cameron Laird on
georg.brandl
python-checkins at python.org
Sun Oct 6 09:23:01 CEST 2013
http://hg.python.org/cpython/rev/e09d5fe1b1a9
changeset: 85998:e09d5fe1b1a9
branch: 3.3
parent: 85994:b79f68d075c3
user: Georg Brandl <georg at python.org>
date: Sun Oct 06 09:23:03 2013 +0200
summary:
Fix: Element.text is an attribute, not a method (report by Cameron Laird on docs@)
files:
Doc/library/xml.etree.elementtree.rst | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Doc/library/xml.etree.elementtree.rst b/Doc/library/xml.etree.elementtree.rst
--- a/Doc/library/xml.etree.elementtree.rst
+++ b/Doc/library/xml.etree.elementtree.rst
@@ -123,7 +123,7 @@
:meth:`Element.findall` finds only elements with a tag which are direct
children of the current element. :meth:`Element.find` finds the *first* child
-with a particular tag, and :meth:`Element.text` accesses the element's text
+with a particular tag, and :attr:`Element.text` accesses the element's text
content. :meth:`Element.get` accesses the element's attributes::
>>> for country in root.findall('country'):
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list