summaryrefslogtreecommitdiffstats
path: root/Doc/library/argparse.rst
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-11-28 17:23:52 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-11-28 17:23:52 (GMT)
commit74120996f54b53c26b0682406647a2f8bdf53e8b (patch)
tree5e49fc55f89280955ea9b798443a869c58e03941 /Doc/library/argparse.rst
parente15cb61ddeb54bf4a5e6099520e5712c72ff15bf (diff)
downloadcpython-74120996f54b53c26b0682406647a2f8bdf53e8b.zip
cpython-74120996f54b53c26b0682406647a2f8bdf53e8b.tar.gz
cpython-74120996f54b53c26b0682406647a2f8bdf53e8b.tar.bz2
Revert duplicate changes in argparse docs.
Diffstat (limited to 'Doc/library/argparse.rst')
-rw-r--r--Doc/library/argparse.rst15
1 files changed, 0 insertions, 15 deletions
diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst
index b10df39..5273e9b 100644
--- a/Doc/library/argparse.rst
+++ b/Doc/library/argparse.rst
@@ -1425,21 +1425,6 @@ be achieved by specifying the ``namespace=`` keyword argument::
'BAR'
-Converting the namespace to a dict
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-
-It's possible to convert a namespace to a :class:`dict` by using the built-in
-function :func:`vars` in this fashion::
-
- args = parser.parse_args()
- argdict = vars(args)
-
-This makes it easy to introspect the namespace or to pass the command-line
-arguments to a function taking a bunch of keyword arguments::
-
- somefunction(**vars(parser.parse_args()))
-
-
Other utilities
---------------