chg: Make argparse.Namespace unpackable/iterable.#7862
chg: Make argparse.Namespace unpackable/iterable.#7862bubthegreat wants to merge 1 commit intopython:masterfrom bubthegreat:master
Conversation
Currently you cant use an argparse namespace iteratively or unpack the values in the **args syntax. These slight changes allow iter methods and unpacking for easier use in instantiating objects based on the Namespace.
|
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA). Unfortunately we couldn't find an account corresponding to your GitHub username on bugs.python.org (b.p.o) to verify you have signed the CLA (this might be simply due to a missing "GitHub Name" entry in your b.p.o account settings). This is necessary for legal reasons before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue. When your account is ready, please add a comment in this pull request Thanks again for your contribution, we look forward to reviewing it! |
|
Thanks for your suggested change, @bubthegreat. But for it to be considered, there are some additional steps to follow. All of these are covered in the Python Developer's Guide. First, you should check the Python issue tracker for any existing similar issues on argparse and open a new one, if none found, and reference the issue in the PR. Second, you will need to submit the contributor agreement, if you haven't already. And, third, and most important, the proposed PR has to compile and pass tests; you'll see that the Travis and VSTS tests have failed because, unfortunately, the |
|
|
||
| import os as _os | ||
| import re as _re | ||
| import six as _six |
There was a problem hiding this comment.
You can't use third party packages in the standard library
|
Thanks for the PR, but closing as the CLA has not been signed within the last month. If you do decide to sign the CLA we can re-open this PR. |
Currently you cant use an argparse namespace iteratively or unpack
the values in the **args syntax. These slight changes allow iter
methods and unpacking for easier use in instantiating objects
based on the Namespace.
Example use: