Skip to content

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

Merged
markshannon merged 1 commit into
python:mainfrom
faster-cpython:fix-117750
Apr 15, 2024
Merged

GH-117750: When clearing object's dict, clear inline values but leave dict attached#117808
markshannon merged 1 commit into
python:mainfrom
faster-cpython:fix-117750

Conversation

@markshannon

@markshannonmarkshannon commented Apr 12, 2024

Copy link
Copy Markdown
Member

@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
Copy Markdown
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.

@markshannon
markshannon merged commit 784e076 into python:mainApr 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 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