summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-11-28 17:24:31 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-11-28 17:24:31 (GMT)
commiteff1738e011ad7eb4479485557095c4a197d48ff (patch)
tree350cd954ecf587174799e7ba682fde757abce4b6 /Doc
parent51292fff3f61c20af9a4d684414000db797f1d4a (diff)
parent74120996f54b53c26b0682406647a2f8bdf53e8b (diff)
downloadcpython-eff1738e011ad7eb4479485557095c4a197d48ff.zip
cpython-eff1738e011ad7eb4479485557095c4a197d48ff.tar.gz
cpython-eff1738e011ad7eb4479485557095c4a197d48ff.tar.bz2
Revert duplicate changes in argparse docs.
Diffstat (limited to 'Doc')
-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 ab84c89..9f6a1ea 100644
--- a/Doc/library/argparse.rst
+++ b/Doc/library/argparse.rst
@@ -1444,21 +1444,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
---------------