diff options
author | Jack DeVries <58614260+jdevries3133@users.noreply.github.com> | 2021-07-31 16:27:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-31 16:27:55 (GMT) |
commit | 0ad173249d287794d53e6a1fe2d58bb2adee2276 (patch) | |
tree | 29c7cf367e7407d308b692a86c202a445c74559f /Misc/NEWS.d | |
parent | 1cf8424a62db38a041d421a46618e025bbb87f89 (diff) | |
download | cpython-0ad173249d287794d53e6a1fe2d58bb2adee2276.zip cpython-0ad173249d287794d53e6a1fe2d58bb2adee2276.tar.gz cpython-0ad173249d287794d53e6a1fe2d58bb2adee2276.tar.bz2 |
bpo-37880: for argparse add_argument with action='store_const', const now defaults to None. (GH-26707)
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r-- | Misc/NEWS.d/next/Library/2021-06-13-00-16-56.bpo-37880.5bTrkw.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2021-06-13-00-16-56.bpo-37880.5bTrkw.rst b/Misc/NEWS.d/next/Library/2021-06-13-00-16-56.bpo-37880.5bTrkw.rst new file mode 100644 index 0000000..4282157 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2021-06-13-00-16-56.bpo-37880.5bTrkw.rst @@ -0,0 +1,3 @@ +argparse actions store_const and append_const each receive a default value +of None when the ``const`` kwarg is not provided. Previously, this raised a +:exc:`TypeError`. |