[issue8047] Serialiser in ElementTree returns unicode strings in Py3k
Antoine Pitrou
report at bugs.python.org
Fri Mar 12 00:01:23 CET 2010
Antoine Pitrou <pitrou at free.fr> added the comment:
Le Thu, 11 Mar 2010 22:03:37 +0000,
Fredrik Lundh <report at bugs.python.org> a écrit :
>
> >>> import array
> >>> array.array("i", [1, 2, 3]).tostring()
> b'\x01\x00\x00\x00\x02\x00\x00\x00\x03\x00\x00\x00'
The fact that array is old, rusty and slightly broken doesn't meen we
should propagate that brokenness to other Python modules.
Also, as David said, the fact that you think there is a bug
here doesn't mean everyone would agree.
Finally, the behaviour you seem to be looking for could be added
as a separated API or an optional method argument. Patches welcome.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8047>
_______________________________________
More information about the Python-bugs-list
mailing list