Skip to content

gh-59317: Improve parsing optional positional arguments in argparse#124303

Merged
serhiy-storchaka merged 2 commits into
python:mainfrom
serhiy-storchaka:argparse-consume-positionals2
Sep 24, 2024
Merged

gh-59317: Improve parsing optional positional arguments in argparse#124303
serhiy-storchaka merged 2 commits into
python:mainfrom
serhiy-storchaka:argparse-consume-positionals2

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Sep 21, 2024

Copy link
Copy Markdown
Member

Fix parsing positional argument with nargs equal to '?' or '*' if it is preceded by an option and another positional argument.

…arse

Fix parsing positional argument with nargs equal to '?' or '*' if it is
preceded by an option and another positional argument.
@serhiy-storchaka serhiy-storchaka merged commit 4a5e4aa into python:main Sep 24, 2024
@miss-islington-app

Copy link
Copy Markdown

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

@serhiy-storchaka serhiy-storchaka deleted the argparse-consume-positionals2 branch September 24, 2024 12:46
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 24, 2024
…arse (pythonGH-124303)

Fix parsing positional argument with nargs equal to '?' or '*' if it is
preceded by an option and another positional argument.
(cherry picked from commit 4a5e4aa)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@bedevere-app

bedevere-app Bot commented Sep 24, 2024

Copy link
Copy Markdown

GH-124436 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 Sep 24, 2024
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 24, 2024
…arse (pythonGH-124303)

Fix parsing positional argument with nargs equal to '?' or '*' if it is
preceded by an option and another positional argument.
(cherry picked from commit 4a5e4aa)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@bedevere-app

bedevere-app Bot commented Sep 24, 2024

Copy link
Copy Markdown

GH-124437 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.12 only security fixes label Sep 24, 2024
serhiy-storchaka added a commit that referenced this pull request Sep 24, 2024
…parse (GH-124303) (GH-124437)

Fix parsing positional argument with nargs equal to '?' or '*' if it is
preceded by an option and another positional argument.
(cherry picked from commit 4a5e4aa)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
serhiy-storchaka added a commit that referenced this pull request Oct 7, 2024
…parse (GH-124303) (GH-124436)

Fix parsing positional argument with nargs equal to '?' or '*' if it is
preceded by an option and another positional argument.
(cherry picked from commit 4a5e4aa)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
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