mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-131306: Remove unused code related to BINARY_SUBSCR
(#131307)
This commit is contained in:
parent
bf4c1bf344
commit
d07e9ebbe8
5 changed files with 6 additions and 15 deletions
|
@ -1706,7 +1706,7 @@ class TestSpecializer(TestBase):
|
|||
binary_subscr_list_int()
|
||||
self.assert_specialized(binary_subscr_list_int,
|
||||
"BINARY_OP_SUBSCR_LIST_INT")
|
||||
self.assert_no_opcode(binary_subscr_list_int, "BINARY_SUBSCR")
|
||||
self.assert_no_opcode(binary_subscr_list_int, "BINARY_OP")
|
||||
|
||||
def binary_subscr_tuple_int():
|
||||
for _ in range(_testinternalcapi.SPECIALIZATION_THRESHOLD):
|
||||
|
@ -1717,7 +1717,7 @@ class TestSpecializer(TestBase):
|
|||
binary_subscr_tuple_int()
|
||||
self.assert_specialized(binary_subscr_tuple_int,
|
||||
"BINARY_OP_SUBSCR_TUPLE_INT")
|
||||
self.assert_no_opcode(binary_subscr_tuple_int, "BINARY_SUBSCR")
|
||||
self.assert_no_opcode(binary_subscr_tuple_int, "BINARY_OP")
|
||||
|
||||
def binary_subscr_dict():
|
||||
for _ in range(_testinternalcapi.SPECIALIZATION_THRESHOLD):
|
||||
|
@ -1737,7 +1737,7 @@ class TestSpecializer(TestBase):
|
|||
|
||||
binary_subscr_str_int()
|
||||
self.assert_specialized(binary_subscr_str_int, "BINARY_OP_SUBSCR_STR_INT")
|
||||
self.assert_no_opcode(binary_subscr_str_int, "BINARY_SUBSCR")
|
||||
self.assert_no_opcode(binary_subscr_str_int, "BINARY_OP")
|
||||
|
||||
def binary_subscr_getitems():
|
||||
class C:
|
||||
|
@ -1752,7 +1752,7 @@ class TestSpecializer(TestBase):
|
|||
|
||||
binary_subscr_getitems()
|
||||
self.assert_specialized(binary_subscr_getitems, "BINARY_OP_SUBSCR_GETITEM")
|
||||
self.assert_no_opcode(binary_subscr_getitems, "BINARY_SUBSCR")
|
||||
self.assert_no_opcode(binary_subscr_getitems, "BINARY_OP")
|
||||
|
||||
@cpython_only
|
||||
@requires_specialization_ft
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue