Skip to content

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented May 24, 2018

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.
(cherry picked from commit 8ebf5ce)

Co-authored-by: Ned Deily [email protected]

https://bugs.python.org/issue33109

…pythonGH-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.
(cherry picked from commit 8ebf5ce)

Co-authored-by: Ned Deily <[email protected]>
@miss-islington
Copy link
Contributor Author

@ned-deily: Backport status check is done, and it's a success ✅ .

@ned-deily ned-deily merged commit dd7a255 into python:3.7 May 24, 2018
@miss-islington
Copy link
Contributor Author

Thanks, @ned-deily!

@miss-islington miss-islington deleted the backport-8ebf5ce-3.7 branch May 24, 2018 02:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants