Re: Dropping bytes "support" in json
Barry Warsaw <[email protected]>
| Newsgroups | gmane.comp.python.devel,gmane.comp.python.mime.devel |
|---|---|
| Message-ID | <[email protected]> |
On Apr 10, 2009, at 11:08 AM, James Y Knight wrote: > Until you write a parser for every header, you simply cannot decode > to unicode. The only sane choices are: > 1) raw bytes > 2) parsed structured data The email package does not need a parser for every header, but it should provide a framework that applications (or third party libraries) can use to extend the built-in header parsers. A bare minimum for functionality requires a Content-Type parser. I think the email package should also include an address header (Originator, Destination) parser, and a Message-ID header parser. Possibly others. The default would probably be some unstructured parser for headers like Subject. -Barry _______________________________________________ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/python-python-dev%40m.gmane.org
PGP.sig
(application/pgp-signature, 304 B) - not displayed