Skip to content

Conversation

@chason
Copy link
Contributor

@chason chason commented Jan 26, 2018

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

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.
@chason chason requested a review from a team as a code owner January 26, 2018 03:40
@the-knights-who-say-ni
Copy link

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!

@chason
Copy link
Contributor Author

chason commented Jan 26, 2018

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed

@bedevere-bot
Copy link

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. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@chason
Copy link
Contributor Author

chason commented Jan 26, 2018

I have made the requested changes; please review again

@bedevere-bot
Copy link

Thanks for making the requested changes!

@bitdancer: please review the changes made to this pull request.

@csabella
Copy link
Contributor

The smtplib docs page needs to be updated to reflect the changes.

documentation changed to reflect the new defaults for `mail_options` and
`rcpt_options` in `SMTP.send_message`.
@matrixise
Copy link
Member

Hi @chason, good catch from @csabella , you have to update the documentation, after that, we will continue to review your PR. Have a nice day,

@chason
Copy link
Contributor Author

chason commented Feb 6, 2018

Hi @matrixise I added that documentation change after @csabella noted it. Thanks.

@chason
Copy link
Contributor Author

chason commented Aug 20, 2018

Hi guys, I know everyone is busy but I was hoping someone had a time to review this!

@methane
Copy link
Member

methane commented Feb 22, 2019

I think this is fixed by #8554.

@methane methane closed this Feb 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants