This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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 <1430416576.79.0.147338541378.issue24079@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
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: <1430416576.79.0.147338541378.issue24079@psf.upfronthosting.co.za>
2015-04-30 17:56:16jlaurenslinkissue24079 messages
2015-04-30 17:56:16jlaurenscreate