Skip to content

Raise a more helpful exception in email.message.Message.attach after set_payload("some string") #55767

@michaelhenry

Description

@michaelhenry
BPO 11558
Nosy @warsaw, @bitdancer
Files
  • test_email_attach_to_string.py: Demonstrates confusing exception returned from attach() after set_payload("some string")
  • string_payload_to_attach.patch
  • test_email_attach_to_string.patch
  • test_email_attach_to_string_11558.patch
  • test_email_attach_to_string_11558.patch
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2014-03-06.16:46:52.768>
    created_at = <Date 2011-03-15.15:34:15.414>
    labels = ['type-feature', 'library', 'expert-email']
    title = 'Raise a more helpful exception in email.message.Message.attach after set_payload("some string")'
    updated_at = <Date 2014-03-06.16:46:52.766>
    user = 'https://bugs.python.org/michaelhenry'

    bugs.python.org fields:

    activity = <Date 2014-03-06.16:46:52.766>
    actor = 'r.david.murray'
    assignee = 'none'
    closed = True
    closed_date = <Date 2014-03-06.16:46:52.768>
    closer = 'r.david.murray'
    components = ['Library (Lib)', 'email']
    creation = <Date 2011-03-15.15:34:15.414>
    creator = 'michael.henry'
    dependencies = []
    files = ['21214', '34258', '34269', '34270', '34273']
    hgrepos = []
    issue_num = 11558
    keywords = ['patch']
    message_count = 10.0
    messages = ['130984', '212498', '212501', '212581', '212594', '212596', '212600', '212610', '212814', '212815']
    nosy_count = 5.0
    nosy_names = ['barry', 'r.david.murray', 'python-dev', 'michael.henry', 'varun']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue11558'
    versions = ['Python 3.4', 'Python 3.5']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      stdlibStandard Library Python modules in the Lib/ directorytopic-emailtype-featureA feature request or enhancement

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions