[Python-Dev] Polymorphic best practices [was: (Not) delaying the 3.2 release]

Barry Warsaw barry at python.org
Fri Sep 17 16:56:02 CEST 2010

On Sep 17, 2010, at 12:10 PM, Antoine Pitrou wrote:

>Also, I don't understand why an application would want to assemble an
>e-mail by itself if it doesn't know how to do so, and produces wrong
>data. Why not simply let the application do:
>m = Message()
>m.add_header("From", "Accented Bàrry <barry at python.org>")
>m.add_body("Hello Barry")

Very often you'll start with a template of a message your application wants to
send.  Then you'll interpolate a few values into it, and you'd like to easily
convert the result into an RFC valid email.

Is that template bytes or text (or either)?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-dev/attachments/20100917/ce52f171/attachment.pgp>

More information about the Python-Dev mailing list