[issue8047] Serialiser in ElementTree returns unicode strings in Py3k

Florent Xicluna report at bugs.python.org
Wed Mar 3 20:10:57 CET 2010


Florent Xicluna <florent.xicluna at gmail.com> added the comment:

With ET 1.3, the serializer ElementTree.write() should output bytes only. And the default encoding is still US-ASCII.

The new behaviour is specific to the 3.x branch (since 3.0, r56841).
Even if it is not fully backward compatible, I don't find this behavior shocking: it is a rule of Python 3 to avoid implicit encoding/decoding.

----------
stage:  -> test needed

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


More information about the Python-bugs-list mailing list