[Python-3000] pyexpat: returns_unicode str/unicode branch (original) (raw)
Joe Gregorio joe at bitworking.org
Sun Jul 22 06:35:14 CEST 2007
- Previous message: [Python-3000] removing exception .args
- Next message: [Python-3000] pyexpat: returns_unicode str/unicode branch
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-3000] removing exception .args
- Next message: [Python-3000] pyexpat: returns_unicode str/unicode branch
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]