]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-92632: Make function starunpack_helper run faster when encounters starred argument...
authorzikcheng <surfingbyte@gmail.com>
Wed, 11 May 2022 06:09:40 +0000 (14:09 +0800)
committerGitHub <noreply@github.com>
Wed, 11 May 2022 06:09:40 +0000 (15:09 +0900)
Python/compile.c

index 45944ae85e383ef5fdf0c0f732f0f9c472f15fd6..51ef8fd17a106731e70a844c71ea0741370704d6 100644 (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) {