projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e15cb61
)
Revert duplicate changes in argparse docs.
author
Andrew Svetlov
<andrew.svetlov@gmail.com>
Wed, 28 Nov 2012 17:23:52 +0000
(19:23 +0200)
committer
Andrew Svetlov
<andrew.svetlov@gmail.com>
Wed, 28 Nov 2012 17:23:52 +0000
(19:23 +0200)
Doc/library/argparse.rst
patch
|
blob
|
history
diff --git
a/Doc/library/argparse.rst
b/Doc/library/argparse.rst
index b10df390e7af97b4e1d53635ac46d5910d1c1a7a..5273e9b12c4686c1d71379ac9abef012850cb674 100644
(file)
--- 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
---------------