diff -r f51921883f50 Doc/library/argparse.rst --- a/Doc/library/argparse.rst Sun Oct 04 01:19:36 2015 -0400 +++ b/Doc/library/argparse.rst Sun Oct 04 23:27:15 2015 +0100 @@ -720,9 +720,8 @@ 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 - optional arguments that specify some sort of flag. For example:: + argument. The ``'store_const'`` action is most commonly used with optional + arguments that specify some sort of flag. For example:: >>> parser = argparse.ArgumentParser() >>> parser.add_argument('--foo', action='store_const', const=42) @@ -730,8 +729,8 @@ Namespace(foo=42) * ``'store_true'`` and ``'store_false'`` - These store the values ``True`` and - ``False`` respectively. These are special cases of ``'store_const'``. For - example:: + ``False`` respectively (Note that these default to ``False`` and ``True`` + respectively). These are special cases of ``'store_const'``. For example:: >>> parser = argparse.ArgumentParser() >>> parser.add_argument('--foo', action='store_true')