Skip to content

[3.13] gh-133441: Fix STORE_ATTR_WITH_HINT bytecode #133446

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: 3.13
Choose a base branch
from

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented May 5, 2025

Deoptimize if the dict is a dict subclass.

Deoptimize if the dict is a dict subclass.
@vstinner
Copy link
Member Author

vstinner commented May 5, 2025

cc @ZeroIntensity @sobolevn

@ZeroIntensity
Copy link
Member

It looks like the offending code is on main as well.

@vstinner
Copy link
Member Author

vstinner commented May 5, 2025

It looks like the offending code is on main as well.

I failed to write code to trigger the bug on main, so I'm not sure that main is affected.

@@ -1594,6 +1594,24 @@ def make_pairs():
self.assertEqual(d.get(key3_3), 44)
self.assertGreaterEqual(eq_count, 1)

def test_store_attr_with_hint(self):
# gh-133441: Regression test for STORE_ATTR_WITH_HINT bytecode
Copy link
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 not test_dict IMO.

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.

3 participants