[New-bugs-announce] [issue41599] get/set_payload deprecated, but get_set_content do not provide full replacement functionality

Erik Quaeghebeur report at bugs.python.org
Thu Aug 20 05:40:49 EDT 2020


New submission from Erik Quaeghebeur <python at equaeghe.nospammail.net>:

>From Python 3.6 onwards, get/set_payload methods are deprecated on the basic email message class, email.message.EmailMessage (changed from email.message.Message). The get/set_content methods are suggested instead. However, with get/set_payload one can ‘transplant’ whole MIME subtrees, while get/set_content cannot deal with multipart parts.

I would like to suggest to not remove get/set_payload until its functionality is present in other methods. Perhaps they should even be un-deprecated.

----------
components: email
messages: 375696
nosy: barry, equaeghe, r.david.murray
priority: normal
severity: normal
status: open
title: get/set_payload deprecated, but get_set_content do not provide full replacement functionality
type: behavior
versions: Python 3.10

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41599>
_______________________________________


More information about the New-bugs-announce mailing list