[New-bugs-announce] [issue27331] Add a policy argument to email.mime.MIMEBase

Berker Peksag report at bugs.python.org
Thu Jun 16 06:40:47 EDT 2016

New submission from Berker Peksag:

Quoting Barry's message msg268430 from issue 10839:

    On Jun 13, 2016, at 06:38 AM, Berker Peksag wrote:

    >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
    >    m = MIMEMultipart()
    >    m.policy = email.policy.default

    I think we just need to plumb a `policy` argument through to the ultimate base
    class, email.message.Message

components: email
files: mimebase_policy.diff
keywords: patch
messages: 268653
nosy: barry, berker.peksag, r.david.murray
priority: normal
severity: normal
stage: patch review
status: open
title: Add a policy argument to email.mime.MIMEBase
type: enhancement
versions: Python 3.6
Added file: http://bugs.python.org/file43409/mimebase_policy.diff

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list