aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-11-28 19:24:44 +0200
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-11-28 19:24:44 +0200
commit2d6f0c1ef963d9b5af53e3eeb296d5eea2ee67a3 (patch)
tree7abace8f2d86013783039ce1fd7e784f15320bf8
parentadec76a28fddbccf06ea863320382ece10517619 (diff)
parenteff1738e011ad7eb4479485557095c4a197d48ff (diff)
downloadcpython-2d6f0c1ef963d9b5af53e3eeb296d5eea2ee67a3.tar.gz
cpython-2d6f0c1ef963d9b5af53e3eeb296d5eea2ee67a3.zip
Revert duplicate changes in argparse docs.
-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 ab84c89283a..9f6a1eaf9d9 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
---------------