[issue24079] xml.etree.ElementTree.Element.text does not conform to the documentation
1 May
2015
1 May
'15
1:56 a.m.
Jérôme Laurens added the comment:
The totsstring(..., method='text') is not suitable for the inner text because it adds the tail of the top element.
A proper implementation would be
def innertext(elt):
return (elt.text or '') +''.join(innertext(e)+e.tail for e in elt)
that can be included in the doc instead of the mention of the to string trick
----------
_______________________________________
Python tracker
3277
Age (days ago)
3277
Last active (days ago)
0 comments
1 participants
participants (1)
-
Jérôme Laurens