Skip to content

Commit

Permalink
LIST_TO_TUPLE exist???
Browse files Browse the repository at this point in the history
  • Loading branch information
thatbirdguythatuknownot committed Sep 2, 2023
1 parent 762398e commit fed90e8
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 56 deletions.
6 changes: 3 additions & 3 deletions Include/internal/pycore_opcode.h

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

6 changes: 0 additions & 6 deletions Include/internal/pycore_opcode_metadata.h

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

27 changes: 13 additions & 14 deletions Include/opcode_ids.h

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

2 changes: 0 additions & 2 deletions Lib/opcode.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,6 @@ def def_op(name, op):
def_op('DICT_MERGE', 164)
def_op('DICT_UPDATE', 165)

def_op('LIST_TO_TUPLE', 166)

def_op('LOAD_FAST_LOAD_FAST', 168)
def_op('STORE_FAST_LOAD_FAST', 169)
def_op('STORE_FAST_STORE_FAST', 170)
Expand Down
6 changes: 0 additions & 6 deletions Python/bytecodes.c
Original file line number Diff line number Diff line change
Expand Up @@ -656,12 +656,6 @@ dummy_func(
ERROR_IF(err, error);
}

inst(LIST_TO_TUPLE, (list -- res)) {
res = _PyTuple_FromArray(_PyList_ITEMS(list), PyList_GET_SIZE(list));
DECREF_INPUTS();
ERROR_IF(res == NULL, error);
}

family(STORE_SUBSCR, INLINE_CACHE_ENTRIES_STORE_SUBSCR) = {
STORE_SUBSCR_DICT,
STORE_SUBSCR_LIST_INT,
Expand Down
2 changes: 1 addition & 1 deletion Python/compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -5885,7 +5885,7 @@ compiler_comprehension(struct compiler *c, expr_ty e, int type,

if (type != COMP_GENEXP) {
if (type == COMP_TUPLECOMP) {
ADDOP(c, LOC(e), LIST_TO_TUPLE);
ADDOP_I(c, LOC(e), CALL_INTRINSIC_1, INTRINSIC_LIST_TO_TUPLE);
}
ADDOP(c, LOC(e), RETURN_VALUE);
}
Expand Down
11 changes: 0 additions & 11 deletions Python/executor_cases.c.h

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

11 changes: 0 additions & 11 deletions Python/generated_cases.c.h

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

4 changes: 2 additions & 2 deletions Python/opcode_targets.h

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

0 comments on commit fed90e8

Please sign in to comment.