Please sign in to comment.
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 <email@example.com>
- Loading branch information
Showing with 39 additions and 8 deletions.
- +2 −2 Doc/library/smtplib.rst
- +6 −6 Lib/smtplib.py
- +28 −0 Lib/test/test_smtplib.py
- +1 −0 Misc/ACKS
- +2 −0 Misc/NEWS.d/next/Library/2018-07-29-15-25-15.bpo-34246.xiKq-Q.rst
|@@ -0,0 +1,2 @@|
|:meth:`smtplib.SMTP.send_message` no longer modifies the content of the|
|*mail_options* argument. Patch by Pablo S. Blum de Aguiar.|