FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

GH-117750: When clearing object's dict, clear inline values but leave dict attached by markshannon · Pull Request #117808 · python/cpython · GitHub

/ cpython Public

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 commented Apr 12, 2024
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

markshannon requested a review from methane as a code owner April 12, 2024 10:22
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

Copy link
Copy Markdown
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 merged commit 784e076 into python:main Apr 15, 2024
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL