Berker Peksag added the comment:

I don't think a new API is needed. But we need to promote the policy keyword 
better in docs. See https://twitter.com/aksiksi/status/741769504817045508 for 
an example of confusion.

I don't know if it's a good idea or API but can we add a 'policy' keyword 
argument to email.mime.base.MIMEBase? Right now, this is the only way to change 
the default policy without using high level functions like 
email.message_from_string():

    m = MIMEMultipart()
    m.policy = email.policy.default

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10839>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to