[issue10590] Parameter type error for xml.sax.parseString(string, ...)

Serhiy Storchaka report at bugs.python.org
Tue Jan 15 20:55:00 CET 2013


Serhiy Storchaka added the comment:

Indeed, xml.dom.minidom.parseString() and xml.etree.ElementTree.fromstring() accepts both bytes and strings, xml.dom.minidom.parse(), xml.etree.ElementTree.parse() and even xml.sax.parse() accepts both byte and text streams. Only xml.sax.parseString() rejects strings in contrast to its name. This looks as 2 to 3 porting bug.

----------
components: +Unicode
nosy: +ezio.melotti, serhiy.storchaka
stage:  -> needs patch
versions: +Python 3.2, Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10590>
_______________________________________


More information about the Python-bugs-list mailing list