Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-63143: Fix parsing mutually exclusive arguments in argparse#124307

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

@serhiy-storchaka
Copy link
Member

@serhiy-storchakaserhiy-storchaka commentedSep 21, 2024
edited by bedevere-appbot
Loading

Arguments with the value identical to the default value (e.g. booleans, small integers, empty or 1-character strings) are no longer considered "not present".

Arguments with the value identical to the default value (e.g. booleans,small integers, empty or 1-character strings) are no longer considered"not present".
@rruuaanng
Copy link
Contributor

It seems that this issue is very similar to issue#109990 (that issue is to ignore existing optional parameters), but its PR has not been reviewed for a long time.

@serhiy-storchaka
Copy link
MemberAuthor

I do not think that these issues are similar.#109990 is rather similar to#59317, in sense that both can only be solved by drastic rewriting of the algorithm. I will look if the proposed PR provides at least partial solution.

@serhiy-storchakaserhiy-storchaka merged commit3094cd1 intopython:mainSep 24, 2024
30 checks passed
@miss-islington-app
Copy link

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

@serhiy-storchakaserhiy-storchaka deleted the argparse-exclusive-default branchSeptember 24, 2024 07:23
miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestSep 24, 2024
…ythonGH-124307)Arguments with the value identical to the default value (e.g. booleans,small integers, empty or 1-character strings) are no longer considered"not present".(cherry picked from commit3094cd1)Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@bedevere-app
Copy link

GH-124418 is a backport of this pull request to the3.13 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestSep 24, 2024
…ythonGH-124307)Arguments with the value identical to the default value (e.g. booleans,small integers, empty or 1-character strings) are no longer considered"not present".(cherry picked from commit3094cd1)Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@bedevere-appbedevere-appbot removed the needs backport to 3.13bugs and security fixes labelSep 24, 2024
@bedevere-app
Copy link

GH-124419 is a backport of this pull request to the3.12 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.12only security fixes labelSep 24, 2024
serhiy-storchaka added a commit that referenced this pull requestSep 24, 2024
…GH-124307) (GH-124419)Arguments with the value identical to the default value (e.g. booleans,small integers, empty or 1-character strings) are no longer considered"not present".(cherry picked from commit3094cd1)Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
serhiy-storchaka added a commit that referenced this pull requestOct 7, 2024
…GH-124307) (GH-124418)Arguments with the value identical to the default value (e.g. booleans,small integers, empty or 1-character strings) are no longer considered"not present".(cherry picked from commit3094cd1)Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@serhiy-storchaka@rruuaanng

[8]ページ先頭

©2009-2025 Movatter.jp