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 Alexander.Kruppa, barry, r.david.murray
Date 2012-11-27.14:50:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1354027823.63.0.36576541507.issue16564@psf.upfronthosting.co.za>
In-reply-to
Content
Yes, the way BytesGenerator works is basically a hack to get the email package itself working.  Use cases outside the email package were not really considered in the (short) timeframe during which it was implemented.

The longer term plan calls for redoing the way payloads are handled to generalize the whole process.  I'd like to see this happen for 3.4, but I'm not sure I'm going to have the time to finish the work (I'm hopeful that I will, though).

In the meantime, while your suggestion is a good one, I'm ambivalent about applying it as a bug fix.  It is on the border between a fix and a feature, since the email package in 3.x hasn't ever supported bytes payloads, only encoded payloads.
History
Date User Action Args
2012-11-27 14:50:23r.david.murraysetrecipients: + r.david.murray, barry, Alexander.Kruppa
2012-11-27 14:50:23r.david.murraysetmessageid: <1354027823.63.0.36576541507.issue16564@psf.upfronthosting.co.za>
2012-11-27 14:50:23r.david.murraylinkissue16564 messages
2012-11-27 14:50:23r.david.murraycreate