
Serhiy Storchaka added the comment: For now the documentation explains the resulting type of tostring(). https://docs.python.org/3/library/xml.etree.elementtree.html#xml.etree.Eleme... """ Generates a string representation of an XML element, including all subelements. element is an Element instance. encoding [1] is the output encoding (default is US-ASCII). Use encoding="unicode" to generate a Unicode string (otherwise, a bytestring is generated). method is either "xml", "html" or "text" (default is "xml"). """ Looks as this issue can be closed. ---------- nosy: +serhiy.storchaka status: open -> pending _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue10942> _______________________________________