This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Xavier Bonaventura
Recipients Xavier Bonaventura
Date 2018-05-24.13:40:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1527169202.84.0.682650639539.issue33633@psf.upfronthosting.co.za>
In-reply-to
Content
I've seen that in the documentation is quite clear with it. The question would be if the print should behave different, it is quite difficult to debug if not.

__setitem__(name, val)
Add a header to the message with field name name and value val. The field is appended to the end of the message’s existing fields.

Note that this does not overwrite or delete any existing header with the same name. If you want to ensure that the new header is the only one present in the message with field name name, delete the field first, e.g.:

del msg['subject']
msg['subject'] = 'Python roolz!'
History
Date User Action Args
2018-05-24 13:40:02Xavier Bonaventurasetrecipients: + Xavier Bonaventura
2018-05-24 13:40:02Xavier Bonaventurasetmessageid: <1527169202.84.0.682650639539.issue33633@psf.upfronthosting.co.za>
2018-05-24 13:40:02Xavier Bonaventuralinkissue33633 messages
2018-05-24 13:40:02Xavier Bonaventuracreate