summaryrefslogtreecommitdiff
path: root/Doc/library/inspect.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-04-03 22:38:53 +0300
committerSerhiy Storchaka <storchaka@gmail.com>2015-04-03 22:38:53 +0300
commit7cad953b314473748a500f636213ff13039ae2e9 (patch)
tree5fd3de6de80b93c9e808f1940d59b3c8784ef58d /Doc/library/inspect.rst
parent510894c2381c1299117f83314ff8cdc2ec5c3042 (diff)
downloadcpython-7cad953b314473748a500f636213ff13039ae2e9.tar.gz
Issue #15582: inspect.getdoc() now follows inheritance chains.
Diffstat (limited to 'Doc/library/inspect.rst')
-rw-r--r--Doc/library/inspect.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst
index 3d2132fd86..471200fa78 100644
--- a/Doc/library/inspect.rst
+++ b/Doc/library/inspect.rst
@@ -356,6 +356,9 @@ Retrieving source code
.. function:: getdoc(object)
Get the documentation string for an object, cleaned up with :func:`cleandoc`.
+ If the documentation string for an object is not provided and the object is
+ a class, a method, a property or a descriptor, retrieve the documentation
+ string from the inheritance hierarchy.
.. function:: getcomments(object)