diff options
author | Ned Deily <nad@python.org> | 2018-05-24 01:55:15 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-24 01:55:15 (GMT) |
commit | 8ebf5ceb0f5408d1ebc26c19702ac0762ef5ea04 (patch) | |
tree | eca9d86e7742c3ed4996506cfc7958b3582e07e6 /Misc/NEWS.d/3.7.0a2.rst | |
parent | 453bd0bc65b7ea6a18c43da69143ab10d54c0a35 (diff) | |
download | cpython-8ebf5ceb0f5408d1ebc26c19702ac0762ef5ea04.zip cpython-8ebf5ceb0f5408d1ebc26c19702ac0762ef5ea04.tar.gz cpython-8ebf5ceb0f5408d1ebc26c19702ac0762ef5ea04.tar.bz2 |
bpo-33109: argparse subparsers are once again not required by default (GH-6919)
bpo-26510 in 3.7.0a2 changed the behavior of argparse to make
subparsers required by default, returning to the behavior of 2.7
and 3.2. The behavior was changed in 3.3 to be no longer required.
While it might make more sense to have the default to required,
compatibility with 3.3 through 3.6 is probably less disruptive
than trying to reintroduce compatibility with 2.7 at this point.
This change restores the 3.6 behavior.
Diffstat (limited to 'Misc/NEWS.d/3.7.0a2.rst')
-rw-r--r-- | Misc/NEWS.d/3.7.0a2.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/3.7.0a2.rst b/Misc/NEWS.d/3.7.0a2.rst index 190038d..621de6d 100644 --- a/Misc/NEWS.d/3.7.0a2.rst +++ b/Misc/NEWS.d/3.7.0a2.rst @@ -477,6 +477,8 @@ module now requires sqlite version at least 3.3.9. argparse subparsers are now required by default. This matches behaviour in Python 2. For optional subparsers, use the new parameter ``add_subparsers(required=False)``. Patch by Anthony Sottile. +(As of 3.7.0rc1, the default was changed to not required as had been the case +since Python 3.3.) .. |