Skip to content

gh-139003: Use frozenset for module level attributes in _pyrepl.utils#139004

Merged
pablogsal merged 3 commits intopython:mainfrom
eendebakpt:pyrepl_utils_frozenset
Mar 28, 2026
Merged

gh-139003: Use frozenset for module level attributes in _pyrepl.utils#139004
pablogsal merged 3 commits intopython:mainfrom
eendebakpt:pyrepl_utils_frozenset

Conversation

@eendebakpt
Copy link
Copy Markdown
Contributor

@eendebakpt eendebakpt commented Sep 16, 2025

Improve performance by using a frozenset instead of a set for module level attributes. Identified in #138931 (comment).

Copy link
Copy Markdown
Member

@efimov-mikhail efimov-mikhail left a comment

Choose a reason for hiding this comment

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

LGTM

@pablogsal pablogsal merged commit 1fd66ea into python:main Mar 28, 2026
54 checks passed
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.

5 participants