Skip to content

gh-122688: Fix support of var-positional parameter in Argument Clinic #122689

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 9, 2024

Conversation

serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Aug 5, 2024

  • Parameters after the var-positional parameter are now keyword-only instead of positional-or-keyword.
  • Correctly calculate min_kw_only.
  • Raise errors for invalid combinations of the var-positional parameter with "*", "/" and deprecation markers.

…Clinic

* Parameters after the var-positional parameter are now keyword-only
  instead of positional-or-keyword.
* Correctly calculate min_kw_only.
* Raise errors for invalid combinations of the var-positional parameter
  with "*", "/" and deprecation markers.
@serhiy-storchaka serhiy-storchaka enabled auto-merge (squash) August 9, 2024 08:58
@serhiy-storchaka serhiy-storchaka merged commit 8393608 into python:main Aug 9, 2024
45 checks passed
@serhiy-storchaka serhiy-storchaka deleted the clinic-varargs branch August 9, 2024 10:21
@serhiy-storchaka serhiy-storchaka added needs backport to 3.12 only security fixes needs backport to 3.13 bugs and security fixes labels Aug 9, 2024
@miss-islington-app
Copy link

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

@miss-islington-app
Copy link

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

@miss-islington-app
Copy link

Sorry, @serhiy-storchaka, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 8393608dd9f157ae25ee44777541e62fa80a6d82 3.13

@miss-islington-app
Copy link

Sorry, @serhiy-storchaka, I could not cleanly backport this to 3.12 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 8393608dd9f157ae25ee44777541e62fa80a6d82 3.12

serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request Aug 9, 2024
…gument Clinic (pythonGH-122689)

* Parameters after the var-positional parameter are now keyword-only
  instead of positional-or-keyword.
* Correctly calculate min_kw_only.
* Raise errors for invalid combinations of the var-positional parameter
  with "*", "/" and deprecation markers.
(cherry picked from commit 8393608)

Co-authored-by: Serhiy Storchaka <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Aug 9, 2024

GH-122852 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Aug 9, 2024
@serhiy-storchaka serhiy-storchaka removed the needs backport to 3.12 only security fixes label Aug 9, 2024
blhsing pushed a commit to blhsing/cpython that referenced this pull request Aug 22, 2024
…Clinic (pythonGH-122689)

* Parameters after the var-positional parameter are now keyword-only
  instead of positional-or-keyword.
* Correctly calculate min_kw_only.
* Raise errors for invalid combinations of the var-positional parameter
  with "*", "/" and deprecation markers.
Yhg1s pushed a commit that referenced this pull request Sep 2, 2024
… Clinic (GH-122689) (#122852)

* Parameters after the var-positional parameter are now keyword-only
  instead of positional-or-keyword.
* Correctly calculate min_kw_only.
* Raise errors for invalid combinations of the var-positional parameter
  with "*", "/" and deprecation markers.
(cherry picked from commit 8393608)
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.

2 participants