Skip to content

importlib/_bootstrap.py: Reduce size of _List instances #114747

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
Jan 30, 2024

Conversation

Eclips4
Copy link
Member

@Eclips4 Eclips4 commented Jan 30, 2024

@Eclips4
Copy link
Member Author

Eclips4 commented Jan 30, 2024

This change prevents us from creating __dict__ for each instance of _Lock type.

@brettcannon brettcannon merged commit 6de8aa3 into python:main Jan 30, 2024
@Eclips4 Eclips4 deleted the reduce_list_size branch January 30, 2024 20:17
@Eclips4
Copy link
Member Author

Eclips4 commented Jan 30, 2024

Since the initial fix (#108497) was backported to 3.12 branch, maybe it's makes sense to backport this patch as well?
@brettcannon @Yhg1s

aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
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.

2 participants