Skip to content

gh-156219: Fix Argument Clinic for an optional argument with **kwds - #156220

Merged
serhiy-storchaka merged 1 commit into
python:mainfrom
serhiy-storchaka:gh-156219-clinic-kwds-optional
Aug 22, 2026
Merged

gh-156219: Fix Argument Clinic for an optional argument with **kwds#156220
serhiy-storchaka merged 1 commit into
python:mainfrom
serhiy-storchaka:gh-156219-clinic-kwds-optional

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Aug 22, 2026

Copy link
Copy Markdown
Member

The generated code read an optional positional argument even if it was not passed, so calling such a function without it crashed. The parameter is now guarded with goto skip_optional, like in functions without **kwds.

…kwds

The generated code read an optional positional argument even if it was
not passed.
@serhiy-storchaka serhiy-storchaka added the needs backport to 3.15 pre-release feature fixes, bugs and security fixes label Aug 22, 2026
@serhiy-storchaka
serhiy-storchaka enabled auto-merge (squash) August 22, 2026 07:35
@serhiy-storchaka
serhiy-storchaka merged commit 4b9a1ca into python:main Aug 22, 2026
67 checks passed
@miss-islington-app

Copy link
Copy Markdown

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.15.
🐍🍒⛏🤖

@bedevere-app

bedevere-app Bot commented Aug 22, 2026

Copy link
Copy Markdown

GH-156222 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 pre-release feature fixes, bugs and security fixes label Aug 22, 2026
@serhiy-storchaka
serhiy-storchaka deleted the gh-156219-clinic-kwds-optional branch August 22, 2026 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant