]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-63143: Fix parsing mutually exclusive arguments in argparse (GH-124307...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 24 Sep 2024 07:42:34 +0000 (09:42 +0200)
committerGitHub <noreply@github.com>
Tue, 24 Sep 2024 07:42:34 +0000 (07:42 +0000)
commite57fbe3d2d26677d51a50c252675e4ca226eca32
tree12570b4a9a1556ba1b4b8e3d4e51ec4ae57af7c0
parent1366fff60997a366ff7ab9e7d37b9cf0ea8de211
[3.12] gh-63143: Fix parsing mutually exclusive arguments in argparse (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 commit 3094cd17b0e5ba69309c54964744c797a70aa11b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/argparse.py
Lib/test/test_argparse.py
Misc/NEWS.d/next/Library/2024-09-21-23-56-41.gh-issue-63143.YKu-LQ.rst [new file with mode: 0644]