Skip to content

gh-149239: Deopt LOAD_ATTR_CLASS_WITH_METACLASS_CHECK on reassining __class__#149269

Open
sobolevn wants to merge 1 commit intopython:mainfrom
sobolevn:issue-149239
Open

gh-149239: Deopt LOAD_ATTR_CLASS_WITH_METACLASS_CHECK on reassining __class__#149269
sobolevn wants to merge 1 commit intopython:mainfrom
sobolevn:issue-149239

Conversation

@sobolevn
Copy link
Copy Markdown
Member

@sobolevn sobolevn commented May 2, 2026

Copy link
Copy Markdown
Member

@Fidget-Spinner Fidget-Spinner left a comment

Choose a reason for hiding this comment

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

LG, just one test nit.

Comment on lines +3515 to +3518
def test_load_attr_class_with_metaclass_check(self):
# LOAD_ATTR_CLASS_WITH_METACLASS_CHECK must check
# for `__class__` writes, see gh-149239
class ColorMeta(enum.EnumType):
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.

This should be in test_opcache.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants