[issue32657] Mutable Objects in SMTP send_message Signature

R. David Murray report at bugs.python.org
Thu Jan 25 09:28:17 EST 2018


R. David Murray <rdmurray at bitdance.com> added the comment:

Chason: that does look like a bug.

Mutable defaults are best to avoid, but if they are used read-only and not passed down further it isn't a problem.  send_message was modeled on sendmail, and so copied it's use of defaults (which date from quite some time back :), but obviously I missed that mutation of the value in the code review of the patch that added those lines :(

----------
nosy: +r.david.murray

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


More information about the Python-bugs-list mailing list