mirror of
https://github.com/python/cpython.git
synced 2026-01-01 04:53:46 +00:00
GH-134584: Remove redundant refcount for BINARY_OP_SUBSCR_STR_INT (#142844)
This commit is contained in:
parent
e79c39101a
commit
1391ee664c
9 changed files with 74 additions and 31 deletions
|
|
@ -329,8 +329,10 @@ dummy_func(void) {
|
|||
ctx->done = true;
|
||||
}
|
||||
|
||||
op(_BINARY_OP_SUBSCR_STR_INT, (str_st, sub_st -- res)) {
|
||||
op(_BINARY_OP_SUBSCR_STR_INT, (str_st, sub_st -- res, s, i)) {
|
||||
res = sym_new_type(ctx, &PyUnicode_Type);
|
||||
s = str_st;
|
||||
i = sub_st;
|
||||
}
|
||||
|
||||
op(_BINARY_OP_SUBSCR_TUPLE_INT, (tuple_st, sub_st -- res)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue