Message254058
There is no problem with supporting both 2.7 and python3 with the same email API as long as your input strings are ASCII only, which is what is required by the email RFCs (as I said, they do not support unicode...even the new one only supports utf8 (a unicode encoding) not unicode itself). So if your input is RFC compliant (using content transfer encoding to encode non-ASCII characters), things will work fine. Just think of unicode as a 7-bit transmission channel (which is what it is from email's perspective). Otherwise the bytes/string issues are no different than they are for any other shared-code-base application.
I have an extensive doc rewrite in process, but I'm not sure when it will land. I thought I had already added the note about ASCII-only to the parser docs, but I see that I did not. I'll reopen this issue to remind myself to do that, since the doc rewrite will only apply to 3.6 (when the new API will no longer be provisional). |
|
Date |
User |
Action |
Args |
2015-11-04 15:36:27 | r.david.murray | set | recipients:
+ r.david.murray, tanzer@swing.co.at |
2015-11-04 15:36:27 | r.david.murray | set | messageid: <1446651387.54.0.809862214631.issue25545@psf.upfronthosting.co.za> |
2015-11-04 15:36:27 | r.david.murray | link | issue25545 messages |
2015-11-04 15:36:27 | r.david.murray | create | |
|