Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commited60aa8

Browse files
committed
simplify
1 parent44d19be commited60aa8

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

‎Python/codegen.c‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5306,23 +5306,19 @@ codegen_subscript(compiler *c, expr_ty e)
53065306
}
53075307
else {
53085308
VISIT(c,expr,e->v.Subscript.slice);
5309-
intop=0;
53105309
switch (ctx) {
53115310
caseLoad:
53125311
ADDOP_I(c,loc,BINARY_OP,NB_SUBSCR);
53135312
break;
53145313
caseStore:
5315-
op=STORE_SUBSCR;break;
5314+
ADDOP(c,loc,op);
53165315
break;
53175316
caseDel:
5318-
op=DELETE_SUBSCR;break;
5317+
ADDOP(c,loc,op);
53195318
break;
53205319
default:
53215320
Py_UNREACHABLE();
53225321
}
5323-
if (op) {
5324-
ADDOP(c,loc,op);
5325-
}
53265322
}
53275323
returnSUCCESS;
53285324
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2026 Movatter.jp