Re: [Python-Dev] the email module, text, and bytes (was Re: Dropping bytes "support" in json)

2009-04-09 Thread Barry Warsaw
On Apr 9, 2009, at 11:11 PM, gl...@divmod.com wrote: I think this is a problematic way to model bytes vs. text; it gives text a special relationship to bytes which should be avoided. IMHO the right way to think about domains like this is a multi-level representation. The "low level" repres

[Python-Dev] the email module, text, and bytes (was Re: Dropping bytes "support" in json)

2009-04-09 Thread glyph
On 02:26 am, ba...@python.org wrote: There are really two ways to look at an email message. It's either an unstructured blob of bytes, or it's a structured tree of objects. Those objects have headers and payload. The payload can be of any type, though I think it generally breaks down into "s