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.ElementTree.tostring
"""
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 <rep...@bugs.python.org>
<http://bugs.python.org/issue10942>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to