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

gh-148398: add type watcher in `_CHECK_ATTR_CLASS` by NekoAsakura · Pull Request #148399 · python/cpython · GitHub

Repository navigation

gh-148398: add type watcher in _CHECK_ATTR_CLASS - #148399

Merged
Fidget-Spinner merged 4 commits into
python:mainfrom
NekoAsakura:gh-148398/add-type-watcher
Apr 12, 2026
Merged

Fidget-Spinner merged 4 commits into
python:mainfrom
NekoAsakura:gh-148398/add-type-watcher

Conversation

NekoAsakura commented Apr 11, 2026 •
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

Copy link
Copy Markdown
Member

I'm not sure whether this went out in an alpha. If it did you probably need a shorts news entry about fixing a bug.

Copy link
Copy Markdown
Member Author

Yes, it's been in since a1. I will write it.

Comment thread Python/optimizer_bytecodes.c Outdated
}
else {
sym_set_const(owner, type);
PyType_Watch(TYPE_WATCHER_ID, type);

kumaraditya303 Apr 12, 2026 •
edited
Loading

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

You don't need to add type watcher if type is immutable.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Ref #148383

Fidget-Spinner merged commit 30c698a into python:main Apr 12, 2026
76 checks passed
NekoAsakura deleted the gh-148398/add-type-watcher branch April 12, 2026 21:16
ljfp pushed a commit to ljfp/cpython that referenced this pull request Apr 25, 2026
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.

3 participants


Back | FazBrowse Home | New Git URL