]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-63143: Fix parsing mutually exclusive arguments in argparse (GH-124307)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 24 Sep 2024 07:23:07 +0000 (10:23 +0300)
committerGitHub <noreply@github.com>
Tue, 24 Sep 2024 07:23:07 +0000 (10:23 +0300)
commit3094cd17b0e5ba69309c54964744c797a70aa11b
treeabca8f5f42108d59eb7f1a2156ca274818568993
parentfaef3fa653f2901cc905f98eae0ddcd8dc334d33
gh-63143: Fix parsing mutually exclusive arguments in argparse (GH-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".
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]