]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-61181: Fix support of choices with string value in argparse (GH-124578...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 7 Oct 2024 21:28:17 +0000 (23:28 +0200)
committerGitHub <noreply@github.com>
Mon, 7 Oct 2024 21:28:17 +0000 (00:28 +0300)
commit4a9a359f32d3f42c509bb9be770370ba21634fc6
tree13137fc92ced507802e5accbb131b2722701ceb7
parent11d4b54b88063efbeb8968263dfa77dcfb816f8c
[3.13] gh-61181: Fix support of choices with string value in argparse (GH-124578) (GH-124755)

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]