[Python-checkins] gh-92632: Make function starunpack_helper run faster when encounters starred argument. (GH-92655)
corona10
webhook-mailer at python.org
Wed May 11 02:09:45 EDT 2022
https://github.com/python/cpython/commit/dc091204f92a72cc7f9ad3af2055b88dcd538161
commit: dc091204f92a72cc7f9ad3af2055b88dcd538161
branch: main
author: zikcheng <surfingbyte at gmail.com>
committer: corona10 <donghee.na92 at gmail.com>
date: 2022-05-11T15:09:40+09:00
summary:
gh-92632: Make function starunpack_helper run faster when encounters starred argument. (GH-92655)
files:
M Python/compile.c
diff --git a/Python/compile.c b/Python/compile.c
index 45944ae85e383..51ef8fd17a106 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -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) {
More information about the Python-checkins
mailing list