Commit edbfff53 authored by Georg Brandl's avatar Georg Brandl

Fix: Element.text is an attribute, not a method (report by Cameron Laird on docs@)

parent 465aae60
......@@ -123,7 +123,7 @@ the sub-tree below it (its children, their children, and so on). For example,
: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'):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment