Re: [Python-3000] email libraries: use byte or unicode strings?

2008-10-30 Thread Stephen J. Turnbull
Andrew McNamara writes: > However - charset encoding is part of the MIME spec, so users have a > reasonable expectation that the mime lib will present them with unicode. > So the API needs to be unicode. It needs to /include/ unicode functionality. However, this might very well be lazy (a fun

Re: [Python-3000] email libraries: use byte or unicode strings?

2008-10-30 Thread Andrew McNamara
>>What about smtplib or smtpd? > >Yes, they should use bytes, I agree. imaplib, poplib and smtplib are wire protocols, and should be 8-bit clean (SMTP in particular). The APIs are little more than the wire protocol, so I think it's apprioriate they present bytes to their users also (and there is