]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-63143: Fix parsing mutually exclusive arguments in argparse (GH-124307...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 7 Oct 2024 21:20:31 +0000 (23:20 +0200)
committerGitHub <noreply@github.com>
Mon, 7 Oct 2024 21:20:31 +0000 (00:20 +0300)
commit167d8d2f072505a85c6db72fdaf4edffd6d17f3a
treead5404639975ff94189471bdfce520f634b8121e
parent63870162f4d80359025762aec802d46ab0ecdb6b
[3.13] gh-63143: Fix parsing mutually exclusive arguments in argparse (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 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]