Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Merge branch 'main' of https://github.com/python/cpython into jit-super
  • Loading branch information
kumaraditya303 committed Apr 8, 2026
commit 875326477a54126eb06ca74dce5e8eec86df9352
4 changes: 2 additions & 2 deletions Include/internal/pycore_uop_ids.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 4 additions & 6 deletions Lib/test/test_capi/test_opt.py
Original file line number Diff line number Diff line change
Expand Up @@ -5057,15 +5057,13 @@ def testfunc(n):
uops = get_opnames(ex)
self.assertNotIn("_LOAD_SUPER_ATTR_METHOD", uops)
self.assertEqual(uops.count("_GUARD_NOS_TYPE_VERSION"), 2)
exe = get_first_executor(testfunc)
self.assertIsNotNone(exe)
self.assertTrue(exe.is_valid())
self.assertTrue(ex.is_valid())
# this should change the type version of A, which should invalidate the executor
A.method1 = lambda self: 1
self.assertFalse(exe.is_valid())
self.assertFalse(ex.is_valid())
# re-running should create a new executor
res, ex = self._run_with_optimizer(testfunc, 2 * TIER2_THRESHOLD)
self.assertEqual(res, 2 * 22 * TIER2_THRESHOLD)
res, ex = self._run_with_optimizer(testfunc, 4 * TIER2_THRESHOLD)
self.assertEqual(res, 4 * 22 * TIER2_THRESHOLD)
self.assertIsNotNone(ex)
uops = get_opnames(ex)
self.assertNotIn("_LOAD_SUPER_ATTR_METHOD", uops)
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.