Skip to content

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

Merged
merged 1 commit into from
Jun 1, 2017

Conversation

JulienPalard
Copy link
Member

Found that this note is refering to code that has been dropped in 51ced7a.

@mention-bot
Copy link

@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.

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.
Copy link
Contributor

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.

Copy link
Contributor

@rhettinger rhettinger left a 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.

@Mariatta Mariatta added the docs Documentation in the Doc dir label May 29, 2017
@Mariatta Mariatta merged commit 0737ee2 into python:master Jun 1, 2017
Mariatta pushed a commit to Mariatta/cpython that referenced this pull request Jun 1, 2017
Mariatta pushed a commit to Mariatta/cpython that referenced this pull request Jun 1, 2017
Mariatta pushed a commit to Mariatta/cpython that referenced this pull request Jun 1, 2017
Mariatta added a commit that referenced this pull request Jun 1, 2017
Mariatta added a commit that referenced this pull request Jun 1, 2017
Mariatta added a commit that referenced this pull request Jun 1, 2017
@Mariatta
Copy link
Member

Mariatta commented Jun 1, 2017

Thanks for the PR @JulienPalard 🎉

@JulienPalard
Copy link
Member Author

Thanks for the merge in all relevant branches @Mariatta

@JulienPalard JulienPalard deleted the bpo-30499 branch June 16, 2019 14:01
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants