summaryrefslogtreecommitdiffstats
path: root/Doc/library/inspect.rst
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-12-08 13:25:52 (GMT)
committerGitHub <noreply@github.com>2023-12-08 13:25:52 (GMT)
commitb39e90e4d188729561c19195b1b0b79eabec540b (patch)
tree6aab46b4aef4baaa97359dcf865df768d0089794 /Doc/library/inspect.rst
parent7ef3a1e64b745aafb596fcbdbdae3b688c2cccc7 (diff)
downloadcpython-b39e90e4d188729561c19195b1b0b79eabec540b.zip
cpython-b39e90e4d188729561c19195b1b0b79eabec540b.tar.gz
cpython-b39e90e4d188729561c19195b1b0b79eabec540b.tar.bz2
[3.12] gh-101100: Improve documentation for attributes on instance methods (GH-112832) (#112872)
gh-101100: Improve documentation for attributes on instance methods (GH-112832) (cherry picked from commit ed21d0c1f4bd17b392e24bfd83e652723dad4ddf) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Diffstat (limited to 'Doc/library/inspect.rst')
-rw-r--r--Doc/library/inspect.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst
index 6f4a24a..f85ab3e 100644
--- a/Doc/library/inspect.rst
+++ b/Doc/library/inspect.rst
@@ -492,7 +492,7 @@ attributes (see :ref:`import-mod-attrs` for module attributes):
Methods implemented via descriptors that also pass one of the other tests
return ``False`` from the :func:`ismethoddescriptor` test, simply because the
other tests promise more -- you can, e.g., count on having the
- :ref:`__func__ <instance-methods>` attribute (etc) when an object passes
+ :attr:`~method.__func__` attribute (etc) when an object passes
:func:`ismethod`.