New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
argparse: remove magic from examples #61137
Comments
The current argparse documentation is not easy to read people new to python. http://docs.python.org/dev/library/argparse.html#choices {{{ Please make this more explicit: {{{ {{{ Next: Please use a more common type, not "complex" in the choices example. It confuses a lot of people. |
+1 |
+1. By the way, I included a couple fixes similar to these in a patch posted to bpo-16878. |
Patch attached. |
The new examples are much better and to me the patch looks ready to apply. |
New changeset b2bb3219d36d by Chris Jerdonek in branch '2.7': New changeset eaa2a6074741 by Chris Jerdonek in branch '3.2': New changeset de9eb3031f5a by Chris Jerdonek in branch '3.3': New changeset bddbaaf332d7 by Chris Jerdonek in branch 'default': |
Thanks for reporting the suggestion, Thomas. And thanks for looking over the patch, Terry. |
There still is one "choices='XYZ'" example (16.4.5.1. Sub-commands) but the focus isn't on choices. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: