New submission from Michael Henry <pyt...@drmikehenry.com>:

The attached test program, test_email_attach_to_string.py, demonstrates the
desire for email.message.Message.attach to raise a more helpful exception when
the user incorrectly invokes attach() after setting the payload to a string.

----------
components: Library (Lib)
files: test_email_attach_to_string.py
messages: 130984
nosy: michael.henry, r.david.murray
priority: normal
severity: normal
status: open
title: Raise a more helpful exception in email.message.Message.attach after 
set_payload("some string")
Added file: http://bugs.python.org/file21214/test_email_attach_to_string.py

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

Reply via email to