This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients r.david.murray, tanzer@swing.co.at
Date 2015-11-04.15:36:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1446651387.54.0.809862214631.issue25545@psf.upfronthosting.co.za>
In-reply-to
Content
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).
History
Date User Action Args
2015-11-04 15:36:27r.david.murraysetrecipients: + r.david.murray, tanzer@swing.co.at
2015-11-04 15:36:27r.david.murraysetmessageid: <1446651387.54.0.809862214631.issue25545@psf.upfronthosting.co.za>
2015-11-04 15:36:27r.david.murraylinkissue25545 messages
2015-11-04 15:36:27r.david.murraycreate