[3.6] bpo-34246: Use no mutable default args in smtplib (GH-8554) by pablogsal · Pull Request #9112 · python/cpython

@bedevere-bot mentioned this pull request

Sep 7, 2018

@scorphus @pablogsal

Some methods of the SMTP class use mutable default arguments. Specially
`send_message` is affected as it mutates one of the args by appending items
to it, which has side effects on further calls..
(cherry picked from commit d5fbe9b)

Co-authored-by: Pablo Aguiar <scorphus@gmail.com>