Author jlaurens
Recipients docs@python, eli.bendersky, jlaurens, ned.deily, rhettinger, scoder
Date 2015-04-30.17:56:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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
Date User Action Args
2015-04-30 17:56:16jlaurenssetrecipients: + jlaurens, rhettinger, scoder, ned.deily, eli.bendersky, docs@python
2015-04-30 17:56:16jlaurenssetmessageid: <>
2015-04-30 17:56:16jlaurenslinkissue24079 messages
2015-04-30 17:56:16jlaurenscreate