Skip to content

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