summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Doc/library/inspect.rst7
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst
index bc4316f..7db6ca6 100644
--- a/Doc/library/inspect.rst
+++ b/Doc/library/inspect.rst
@@ -247,9 +247,10 @@ attributes:
.. function:: getmembers(object[, predicate])
- Return all the members of an object in a list of (name, value) pairs sorted by
- name. If the optional *predicate* argument is supplied, only members for which
- the predicate returns a true value are included.
+ Return all the members of an object in a list of ``(name, value)``
+ pairs sorted by name. If the optional *predicate* argument—which will be
+ called with the ``value`` object of each member—is supplied, only members
+ for which the predicate returns a true value are included.
.. note::