-
-
Notifications
You must be signed in to change notification settings - Fork 32k
bpo-30499: Remove a deprecated note about sets. #1848
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
@JulienPalard, thanks for your PR! By analyzing the history of the files in this pull request, we identified @birkenfeld, @ncoghlan and @benjaminp to be potential reviewers. |
Doc/library/stdtypes.rst
Outdated
frozenset, the *elem* set is temporarily mutated during the search and then | ||
restored. During the search, the *elem* set should not be read or mutated | ||
since it does not have a meaningful value. | ||
:meth:`discard` methods may be a set. |
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.
While correct, this leaves the mechanism as a mystery. There should probably be a sentence saying that a new temporary frozenset is built from elem. That would be a minor implementation detail except for the O(n) conversion cost.
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.
Add a note indicating that a temporary frozenset is built to support the search.
(cherry picked from commit 0737ee2)
(cherry picked from commit 0737ee2)
(cherry picked from commit 0737ee2)
Thanks for the PR @JulienPalard 🎉 |
Thanks for the merge in all relevant branches @Mariatta |
Found that this note is refering to code that has been dropped in 51ced7a.