Skip to content

Conversation

@markshannon
Copy link
Member

@markshannonmarkshannon commented Apr 12, 2024

@markshannonmarkshannon changed the title GF-117750: When clearing object's dict, clear inline values but leave dict attachedGH-117750: When clearing object's dict, clear inline values but leave dict attachedApr 12, 2024
@markshannon
Copy link
MemberAuthor

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.

@markshannonmarkshannon merged commit 784e076 into python:mainApr 15, 2024
@markshannonmarkshannon 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 freeto 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

@markshannon@iritkatriel