[docs] [issue10942] xml.etree.ElementTree.tostring returns type bytes, expected type str
Serhiy Storchaka
report at bugs.python.org
Sat Nov 21 10:09:26 EST 2015
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 <report at bugs.python.org>
<http://bugs.python.org/issue10942>
_______________________________________
More information about the docs
mailing list