Feature or enhancement
Proposal:
While working on bug in PR #136071 we (me and @picnixz) discussed that set_payload of email.message.Message method could use list, str, bytes or handle buffer objects as payload to set.
For now it using duck type for objects with decode and encode methods. https://github.com/python/cpython/blob/main/Lib/email/message.py#L335-L353
I guess we need to decide necessary of it and if so the types that need to be support. Also update typing in typeshed for email.message.Message
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
#134759
#136071
Feature or enhancement
Proposal:
While working on bug in PR #136071 we (me and @picnixz) discussed that
set_payloadofemail.message.Messagemethod could use list, str, bytes or handle buffer objects as payload to set.For now it using duck type for objects with
decodeandencodemethods. https://github.com/python/cpython/blob/main/Lib/email/message.py#L335-L353I guess we need to decide necessary of it and if so the types that need to be support. Also update typing in typeshed for
email.message.MessageHas this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
#134759
#136071