gh-92632: Make function starunpack_helper run faster when encounters starred argument. (GH-92655)

This commit is contained in:
zikcheng 2022-05-11 14:09:40 +08:00 committed by GitHub
parent 87f849c775
commit dc091204f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -4375,6 +4375,7 @@ starunpack_helper(struct compiler *c, asdl_expr_seq *elts, int pushed,
expr_ty elt = asdl_seq_GET(elts, i);
if (elt->kind == Starred_kind) {
seen_star = 1;
break;
}
}
if (!seen_star && !big) {