Visitar URL original
gh-92632: Make function starunpack_helper run faster when processing starred argument by zikcheng · Pull Request #92655 · python/cpython · GitHub
The Wayback Machine - https://web.archive.org/web/20260521033409/https://github.com/python/cpython/pull/92655
Skip to content
/ cpython Public

gh-92632: Make function starunpack_helper run faster when processing starred argument#92655

Merged
corona10 merged 1 commit into
python:mainfrom
zikcheng:add_break_for_starunpack_helper
May 11, 2022
Merged

gh-92632: Make function starunpack_helper run faster when processing starred argument#92655
corona10 merged 1 commit into
python:mainfrom
zikcheng:add_break_for_starunpack_helper

Conversation

@zikcheng
Copy link
Copy Markdown
Contributor

@zikcheng zikcheng commented May 11, 2022 •

Make function starunpack_helper run faster when processing starred argument

In function starunpack_helper, there is a loop to figure out where there is a starred argument.
When a starred argument found, the loop does not stop. We can add a break statement to stop the
loop as early as possible.

closes: gh-92632

…gument.

In function starunpack_helper, there is a loop to figure out where there is a starred argument.
When a starred argument found, the loop does not stop. We can add a break statement to stop the
loop as early as possible.
@zikcheng zikcheng requested a review from markshannon as a code owner May 11, 2022 02:01
@bedevere-bot
Copy link
Copy Markdown

Every change to Python requires a NEWS entry.

Please, add it using the blurb_it Web app or the blurb command-line tool.

Copy link
Copy Markdown
Member

@corona10 corona10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Function starunpack_helper miss a break statement

3 participants