summaryrefslogtreecommitdiffstats
path: root/Doc/library/inspect.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2020-05-18 17:25:07 (GMT)
committerGitHub <noreply@github.com>2020-05-18 17:25:07 (GMT)
commit08b47c367a08f571a986366aa33828d3951fa88d (patch)
treebe06ca168536a48a19f2a093192ad7137ff8aa3c /Doc/library/inspect.rst
parent98e42d1f882b9b59f587d538c562dbc7d11c64c3 (diff)
downloadcpython-08b47c367a08f571a986366aa33828d3951fa88d.zip
cpython-08b47c367a08f571a986366aa33828d3951fa88d.tar.gz
cpython-08b47c367a08f571a986366aa33828d3951fa88d.tar.bz2
bpo-40257: Revert changes to inspect.getdoc() (GH-20073)
Diffstat (limited to 'Doc/library/inspect.rst')
-rw-r--r--Doc/library/inspect.rst5
1 files changed, 1 insertions, 4 deletions
diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst
index 6346451..d00a30f 100644
--- a/Doc/library/inspect.rst
+++ b/Doc/library/inspect.rst
@@ -473,15 +473,12 @@ 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 method, a property or a descriptor, retrieve the documentation
+ a class, 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)