summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-04-09 03:49:48 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2016-04-09 03:49:48 (GMT)
commit87d9de63544db51e5f0d7cded0259c989421f346 (patch)
tree1ef40783c29e12b87cd726b938eb8b514435c024 /Doc
parent6a8163a928f9ff04242580c09216431ddd39cdbc (diff)
downloadcpython-87d9de63544db51e5f0d7cded0259c989421f346.zip
cpython-87d9de63544db51e5f0d7cded0259c989421f346.tar.gz
cpython-87d9de63544db51e5f0d7cded0259c989421f346.tar.bz2
Issue #25314: Remove confused statement about const argument
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/argparse.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst
index 181291f..c7b8cb7 100644
--- a/Doc/library/argparse.rst
+++ b/Doc/library/argparse.rst
@@ -675,8 +675,7 @@ how the command-line arguments should be handled. The supplied actions are:
Namespace(foo='1')
* ``'store_const'`` - This stores the value specified by the const_ keyword
- argument. (Note that the const_ keyword argument defaults to the rather
- unhelpful ``None``.) The ``'store_const'`` action is most commonly used with
+ argument. The ``'store_const'`` action is most commonly used with
optional arguments that specify some sort of flag. For example::
>>> parser = argparse.ArgumentParser()
@@ -878,7 +877,8 @@ the various :class:`ArgumentParser` actions. The two most common uses of it are
command-line argument following it, the value of ``const`` will be assumed instead.
See the nargs_ description for examples.
-The ``const`` keyword argument defaults to ``None``.
+With the ``'store_const'`` and ``'append_const'`` actions, the ``const``
+keyword argument must be given. For other actions, is defaults to ``None``.
default