mirror of
https://github.com/python/cpython.git
synced 2026-04-14 07:41:00 +00:00
gh-139757: Add BINARY_OP_SUBSCR_USTR_INT (GH-143389)
This commit is contained in:
parent
6116d70bbd
commit
e6bfe4d886
16 changed files with 1462 additions and 1197 deletions
|
|
@ -334,6 +334,12 @@ dummy_func(void) {
|
|||
i = sub_st;
|
||||
}
|
||||
|
||||
op(_BINARY_OP_SUBSCR_USTR_INT, (str_st, sub_st -- res, s, i)) {
|
||||
res = sym_new_type(ctx, &PyUnicode_Type);
|
||||
s = str_st;
|
||||
i = sub_st;
|
||||
}
|
||||
|
||||
op(_GUARD_BINARY_OP_SUBSCR_TUPLE_INT_BOUNDS, (tuple_st, sub_st -- tuple_st, sub_st)) {
|
||||
assert(sym_matches_type(tuple_st, &PyTuple_Type));
|
||||
if (sym_is_const(ctx, sub_st)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue