Skip to content

Clarify that Set._from_iterable is not required to be a classmethod.#23272

Merged
rhettinger merged 4 commits into
python:masterfrom
rickeylev:set-abc-from-iterable-doc-fix
Nov 21, 2020
Merged

Clarify that Set._from_iterable is not required to be a classmethod.#23272
rhettinger merged 4 commits into
python:masterfrom
rickeylev:set-abc-from-iterable-doc-fix

Conversation

@rickeylev

Copy link
Copy Markdown
Contributor

In the implementation, _from_iterable is only used via self, and
requiring _from_iterable to be a classmethod makes it of little
value to subclasses with different constructor signatures.

In the implementation, `_from_iterable` is only used via `self`, and
requiring `_from_iterable` to be a classmethod makes it of little
value to subclasses with different constructor signatures.
@the-knights-who-say-ni

Copy link
Copy Markdown

Hello, and thanks for your contribution!

I'm a bot set up to make sure that the project can legally accept this contribution by verifying everyone involved has signed the PSF contributor agreement (CLA).

Recognized GitHub username

We couldn't find a bugs.python.org (b.p.o) account corresponding to the following GitHub usernames:

@rickeylev

This might be simply due to a missing "GitHub Name" entry in one's b.p.o account settings. This is necessary for legal reasons before we can look at this contribution. Please follow the steps outlined in the CPython devguide to rectify this issue.

You can check yourself to see if the CLA has been received.

Thanks again for the contribution, we look forward to reviewing it!

@bedevere-bot bedevere-bot added docs Documentation in the Doc dir awaiting review labels Nov 13, 2020
Comment thread Doc/library/collections.abc.rst Outdated
Comment thread Doc/library/collections.abc.rst Outdated
@bedevere-bot

Copy link
Copy Markdown

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.

* Restore mention default impl is class doc
* Rephrase to say impl can be class or regular method
* Add tests to verify instance method _from_iterable works
@rickeylev

Copy link
Copy Markdown
Contributor Author

I have made the requested changes; please review again

@bedevere-bot

Copy link
Copy Markdown

Thanks for making the requested changes!

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

@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @rickeylev for the PR, and @rhettinger for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9.
🐍🍒⛏🤖

@bedevere-bot

Copy link
Copy Markdown

GH-23450 is a backport of this pull request to the 3.9 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Nov 21, 2020
…ythonGH-23272)

(cherry picked from commit 68f68fa)

Co-authored-by: Richard Levasseur <richardlev@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip issue skip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants