]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-61181: Fix support of choices with string value in argparse (GH-124578...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 29 Sep 2024 08:32:51 +0000 (10:32 +0200)
committerGitHub <noreply@github.com>
Sun, 29 Sep 2024 08:32:51 +0000 (08:32 +0000)
commit7677be5ee6ffdc7b4b366ea29a86da50873cd731
treed19292b271b975ceb8c6f26539ecbea52077d6e7
parent71a2b8d1851ad1f157d5e99f16868fb9544bf15b
[3.12] gh-61181: Fix support of choices with string value in argparse (GH-124578) (GH-124756)

Substrings of the specified string no longer considered valid values.
(cherry picked from commit f1a2417b9e2993e584610851ac004c8b0599b323)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Doc/library/argparse.rst
Lib/argparse.py
Lib/test/test_argparse.py
Misc/NEWS.d/next/Library/2024-09-26-09-18-09.gh-issue-61181.dwjmch.rst [new file with mode: 0644]