Skip to content
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

GH-117750: When clearing object's dict, clear inline values but leave dict attached #117808

Merged
merged 1 commit into from
Apr 15, 2024

Conversation

markshannon
Copy link
Member

@markshannon markshannon commented Apr 12, 2024

@markshannon markshannon requested a review from methane as a code owner April 12, 2024 10:22
@markshannon markshannon changed the title GF-117750: When clearing object's dict, clear inline values but leave dict attached GH-117750: When clearing object's dict, clear inline values but leave dict attached Apr 12, 2024
@markshannon
Copy link
Member Author

This is not the most obvious fix. That would be to invalidate the object's values when clearing the dict.

However, invalidation would be much less efficient for subsequent attribute access, if those attributes can be shared.

@markshannon markshannon merged commit 784e076 into python:main Apr 15, 2024
39 checks passed
@markshannon markshannon deleted the fix-117750 branch April 15, 2024 13:45
diegorusso pushed a commit to diegorusso/cpython that referenced this pull request Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants