[Python-Dev] Polymorphic best practices [was: (Not) delaying the 3.2 release]
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>")
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...
Size: 836 bytes
Desc: not available
More information about the Python-Dev