summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-04-03 19:38:53 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-04-03 19:38:53 (GMT)
commit5cf2b7253dc43b203c2f918416b4d25ad1dbfa7d (patch)
treec12664299b2f9e54eddf21cd3403fcb2daa7fa7f /Doc
parent41525e31a5a40c1c20a5115aed9609f49c60b43a (diff)
downloadcpython-5cf2b7253dc43b203c2f918416b4d25ad1dbfa7d.zip
cpython-5cf2b7253dc43b203c2f918416b4d25ad1dbfa7d.tar.gz
cpython-5cf2b7253dc43b203c2f918416b4d25ad1dbfa7d.tar.bz2
Issue #15582: inspect.getdoc() now follows inheritance chains.
Diffstat (limited to 'Doc')
-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 3d2132f..471200f 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)