We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44d19be commit ed60aa8Copy full SHA for ed60aa8
Python/codegen.c
@@ -5306,23 +5306,19 @@ codegen_subscript(compiler *c, expr_ty e)
5306
}
5307
else {
5308
VISIT(c, expr, e->v.Subscript.slice);
5309
- int op = 0;
5310
switch (ctx) {
5311
case Load:
5312
ADDOP_I(c, loc, BINARY_OP, NB_SUBSCR);
5313
break;
5314
case Store:
5315
- op = STORE_SUBSCR; break;
+ ADDOP(c, loc, op);
5316
5317
case Del:
5318
- op = DELETE_SUBSCR; break;
5319
5320
default:
5321
Py_UNREACHABLE();
5322
5323
- if (op) {
5324
- ADDOP(c, loc, op);
5325
- }
5326
5327
return SUCCESS;
5328
0 commit comments