-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
bpo-32657 Removing mutable entry from send_message #5334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The signature for send_message included mutable defaults for two sets of options, mail_options and rcpt_options. Additionally, the default for rcpt_options was a dictionary, not a list. These have now been changed to have a default of None, which is set to a dictionary during function execution.
|
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA). Unfortunately our records indicate you have not signed the CLA. For legal reasons we need you to sign this before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue. Thanks again to your contribution and we look forward to looking at it! |
|
I also have a test written for this, but it requires the changes from #5314 to work properly |
| @@ -0,0 +1,2 @@ | |||
| Removing mutable defaults for mail_options and rcpt_options from | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
|
I have made the requested changes; please review again |
|
Thanks for making the requested changes! @bitdancer: please review the changes made to this pull request. |
|
The |
documentation changed to reflect the new defaults for `mail_options` and `rcpt_options` in `SMTP.send_message`.
|
Hi @matrixise I added that documentation change after @csabella noted it. Thanks. |
|
Hi guys, I know everyone is busy but I was hoping someone had a time to review this! |
|
I think this is fixed by #8554. |
The signature for send_message included mutable defaults for two sets of
options, mail_options and rcpt_options. Additionally, the default for
rcpt_options was a dictionary, not a list. These have now been changed
to have a default of None, which is set to a dictionary during function
execution.
https://bugs.python.org/issue32657