Rémi Lapeyre <remi.lape...@henki.fr> added the comment: I think this is the expected behavior, see https://docs.python.org/3.4/library/email.message.html#email.message.Message.__getitem__ for details:
> Note that if the named field appears more than once in the message’s headers, > exactly which of those field values will be returned is undefined. Use the > get_all() method to get the values of all the extant named headers. This has been already discussed elsewhere, it may not be the best API but for compatibility reasons, we cannot change it anyway. ---------- nosy: +remi.lapeyre _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue36303> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com