[docs] xml.etree.ElementTree.Element.text does not conform to the documentation (issue 24079)

scoder at users.sourceforge.net scoder at users.sourceforge.net
Sat May 30 07:35:22 CEST 2015


https://bugs.python.org/review/24079/diff/14986/Doc/library/xml.etree.elementtree.rst
File Doc/library/xml.etree.elementtree.rst (right):

https://bugs.python.org/review/24079/diff/14986/Doc/library/xml.etree.elementtree.rst#newcode657
Doc/library/xml.etree.elementtree.rst:657: and the next tag.  The *tail*
attribute holds any text between the
Not strictly true, e.g. "<tag />abc<next-tag/>" - is "abc" in text or
tail here? Or in both?
Also, I think the usual wording is "opening" and "closing" tag.

https://bugs.python.org/review/24079/diff/14986/Doc/library/xml.etree.elementtree.rst#newcode659
Doc/library/xml.etree.elementtree.rst:659: ``None`` if there is no text.
 For example, in the XML data
Only by the parser. Application code may do with it what it likes.

https://bugs.python.org/review/24079/


More information about the docs mailing list