[Python-3000] pyexpat: returns_unicode str/unicode branch (original) (raw)

Joe Gregorio joe at bitworking.org
Sun Jul 22 06:35:14 CEST 2007


On 7/21/07, Fred L. Drake, Jr. <fdrake at acm.org> wrote:

On Saturday 21 July 2007, Joe Gregorio wrote: > Should xml.parsers.expat.XMLParser.ParseFile(file) operate on > both text and binary streams?

No. XML is a serialization of a markup language containing Unicode character into an encoded stream.

Along the same lines, since all strings are now unicode, should "returns_unicode" be dropped from xmlparser objects? That is, the handler functions will always be passed unicode strings and not utf-8 bytes.

Thanks, -joe

-- Joe Gregorio http://bitworking.org



More information about the Python-3000 mailing list