Skip to content

bpo-46721: Optimize set.issuperset() for non-set arguments#31280

Merged
serhiy-storchaka merged 3 commits intopython:mainfrom
serhiy-storchaka:set-issuperset
Apr 6, 2022
Merged

bpo-46721: Optimize set.issuperset() for non-set arguments#31280
serhiy-storchaka merged 3 commits intopython:mainfrom
serhiy-storchaka:set-issuperset

Conversation

@serhiy-storchaka
Copy link
Copy Markdown
Member

@serhiy-storchaka serhiy-storchaka commented Feb 11, 2022

@sweeneyde
Copy link
Copy Markdown
Member

Is it possible that someone is relying on some_set.issuperset(iterable) consuming all of iterable? It does seem unlikely and fragile, but I just wanted to double-check.

@serhiy-storchaka
Copy link
Copy Markdown
Member Author

Yes, it is possible, but I do not think there is much such code. We cannot double-check this.

@serhiy-storchaka
Copy link
Copy Markdown
Member Author

@rhettinger, could you please look at this PR and #31316?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performance Performance or resource usage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants