summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2020-04-15 20:00:20 (GMT)
committerGitHub <noreply@github.com>2020-04-15 20:00:20 (GMT)
commitfbf2786c4c89430e2067016603078cf3500cfe94 (patch)
tree151141df42e6e058127ef59eae7f95c5e4644991 /Doc/library
parentba1bcffe5cafc1bb0ac6fdf9ecef51e75e342707 (diff)
downloadcpython-fbf2786c4c89430e2067016603078cf3500cfe94.zip
cpython-fbf2786c4c89430e2067016603078cf3500cfe94.tar.gz
cpython-fbf2786c4c89430e2067016603078cf3500cfe94.tar.bz2
bpo-40257: Output object's own docstring in pydoc (GH-19479)
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/inspect.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst
index d00a30f..6346451 100644
--- a/Doc/library/inspect.rst
+++ b/Doc/library/inspect.rst
@@ -473,12 +473,15 @@ Retrieving source code
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
+ a method, a property or a descriptor, retrieve the documentation
string from the inheritance hierarchy.
.. versionchanged:: 3.5
Documentation strings are now inherited if not overridden.
+ .. versionchanged:: 3.9
+ Documentation strings for classes are no longer inherited.
+
.. function:: getcomments(object)