[New-bugs-announce] [issue4997] xml.sax.saxutils.XMLGenerator should write to io.RawIOBase.

HiroakiKawai report at bugs.python.org
Mon Jan 19 11:35:57 CET 2009


New submission from HiroakiKawai <kawai at apache.org>:

xml.sax.saxutils.XMLGenerator._write tests the argument by 
isinstance(text, str), but this is problematic in Python 3.0. 
XMLGenerator accepts encoding and the produced file is encoded by that 
encoding, i.e., the XML is a binary sequence. So IMHO, the XMLGenerator 
constructor argument should be a subclass of io.RawIOBase.

----------
components: Library (Lib), XML
messages: 80155
nosy: kawai
severity: normal
status: open
title: xml.sax.saxutils.XMLGenerator should write to io.RawIOBase.
versions: Python 3.0

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


More information about the New-bugs-announce mailing list