[Python-checkins] cpython (2.7): the correct role is :meth: not :method:
benjamin.peterson
python-checkins at python.org
Thu Sep 4 17:50:20 CEST 2014
http://hg.python.org/cpython/rev/f17ab9fed3b0
changeset: 92336:f17ab9fed3b0
branch: 2.7
user: Benjamin Peterson <benjamin at python.org>
date: Thu Sep 04 11:50:14 2014 -0400
summary:
the correct role is :meth: not :method:
files:
Doc/library/argparse.rst | 14 ++++++--------
1 files changed, 6 insertions(+), 8 deletions(-)
diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst
--- a/Doc/library/argparse.rst
+++ b/Doc/library/argparse.rst
@@ -1213,19 +1213,17 @@
^^^^^^^^^^^^^^
Action classes implement the Action API, a callable which returns a callable
-which processes arguments from the command-line. Any object which follows
-this API may be passed as the ``action`` parameter to
-:method:`add_argument`.
+which processes arguments from the command-line. Any object which follows this
+API may be passed as the ``action`` parameter to :meth:`add_argument`.
.. class:: Action(option_strings, dest, nargs=None, const=None, default=None,
type=None, choices=None, required=False, help=None,
metavar=None)
-Action objects are used by an ArgumentParser to represent the information
-needed to parse a single argument from one or more strings from the
-command line. The Action class must accept the two positional arguments
-plus any keyword arguments passed to :method:`ArgumentParser.add_argument`
-except for the ``action`` itself.
+Action objects are used by an ArgumentParser to represent the information needed
+to parse a single argument from one or more strings from the command line. The
+Action class must accept the two positional arguments plus any keyword arguments
+passed to :meth:`ArgumentParser.add_argument` except for the ``action`` itself.
Instances of Action (or return value of any callable to the ``action``
parameter) should have attributes "dest", "option_strings", "default", "type",
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list