Xavier Bonaventura <xavibonavent...@gmail.com> added the comment: 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!' ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33633> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com