summaryrefslogtreecommitdiffstats
path: root/Doc/library/xml.etree.elementtree.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-08-29 07:29:30 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-08-29 07:29:30 (GMT)
commita8c2a8aa8dcf236355348adf696d2aae8fbe45b2 (patch)
treef54cddfc410b127c26cf13f9cb9056fed482d607 /Doc/library/xml.etree.elementtree.rst
parentafe890923f4265958903bb23d20b6e27b02e3010 (diff)
parent15e6590774956a5bbb3a901bf5328869eb44ad49 (diff)
downloadcpython-a8c2a8aa8dcf236355348adf696d2aae8fbe45b2.zip
cpython-a8c2a8aa8dcf236355348adf696d2aae8fbe45b2.tar.gz
cpython-a8c2a8aa8dcf236355348adf696d2aae8fbe45b2.tar.bz2
Issue #18760: Improved cross-references in the xml package.
Diffstat (limited to 'Doc/library/xml.etree.elementtree.rst')
-rw-r--r--Doc/library/xml.etree.elementtree.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/library/xml.etree.elementtree.rst b/Doc/library/xml.etree.elementtree.rst
index 8563971..e1d9ff0 100644
--- a/Doc/library/xml.etree.elementtree.rst
+++ b/Doc/library/xml.etree.elementtree.rst
@@ -710,8 +710,9 @@ Element Objects
or contents.
:class:`Element` objects also support the following sequence type methods
- for working with subelements: :meth:`__delitem__`, :meth:`__getitem__`,
- :meth:`__setitem__`, :meth:`__len__`.
+ for working with subelements: :meth:`~object.__delitem__`,
+ :meth:`~object.__getitem__`, :meth:`~object.__setitem__`,
+ :meth:`~object.__len__`.
Caution: Elements with no subelements will test as ``False``. This behavior
will change in future versions. Use specific ``len(elem)`` or ``elem is