[Python-3000] str/unicode tests: pyexpat.c and read(n) (original) (raw)

Guido van Rossum guido at python.org
Sun Jul 22 17:43:54 CEST 2007


On 7/22/07, "Martin v. Löwis" <martin at v.loewis.de> wrote:

> Sure, normally XML is serialized to bytes, but it is also > serializable to unicode, and that's a useful feature to have (if > implementable).

It's not reasonably implementable; users who have use cases will have to encode as UTF-8 first.

Now I'm confused. Are we proposing that all our XML APIs read and write encoded bytes, or are we proposing that they read and write Unicode strings, leaving the encoding/decoding to the I/O stream? I thought the latter was preferred but now it looks like you're arguing for the former?

-- --Guido van Rossum (home page: http://www.python.org/~guido/)



More information about the Python-3000 mailing list