diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2019-10-07 02:08:48 (GMT) |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-10-07 02:08:48 (GMT) |
commit | 9e71917e0290972f65711f75510078f799cf0b59 (patch) | |
tree | 3529f4d478c896a3b03b2c32d22672a76ec7f121 /Doc/whatsnew/3.7.rst | |
parent | 24ddd9c2d6ab61cbce7e68d6de36d4df9bd2c3fb (diff) | |
download | cpython-9e71917e0290972f65711f75510078f799cf0b59.zip cpython-9e71917e0290972f65711f75510078f799cf0b59.tar.gz cpython-9e71917e0290972f65711f75510078f799cf0b59.tar.bz2 |
bpo-26510: Add versionchanged for required arg of add_subparsers (GH-16588)
The `required` argument to `argparse.add_subparsers` was added in #3027. This PR specifies the earliest version of Python where it is available.
https://bugs.python.org/issue26510
Automerge-Triggered-By: @merwok
Diffstat (limited to 'Doc/whatsnew/3.7.rst')
-rw-r--r-- | Doc/whatsnew/3.7.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.7.rst b/Doc/whatsnew/3.7.rst index af7e22d..1ec8e0c 100644 --- a/Doc/whatsnew/3.7.rst +++ b/Doc/whatsnew/3.7.rst @@ -2401,6 +2401,10 @@ Changes in the Python API instead of a :class:`bytes` instance. (Contributed by Victor Stinner in :issue:`21071`.) +* :mod:`argparse` subparsers can now be made mandatory by passing ``required=True`` + to :meth:`ArgumentParser.add_subparsers() <argparse.ArgumentParser.add_subparsers>`. + (Contributed by Anthony Sottile in :issue:`26510`.) + * :meth:`ast.literal_eval()` is now stricter. Addition and subtraction of arbitrary numbers are no longer allowed. (Contributed by Serhiy Storchaka in :issue:`31778`.) |