diff options
author | Alex Waygood <Alex.Waygood@Gmail.com> | 2023-12-08 13:18:53 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-08 13:18:53 (GMT) |
commit | ed21d0c1f4bd17b392e24bfd83e652723dad4ddf (patch) | |
tree | e9fde7764802e61c8273e192eba35eb0fd6d3687 /Doc/library/inspect.rst | |
parent | e4c087603397a1314253b861d35f8314fba8ae92 (diff) | |
download | cpython-ed21d0c1f4bd17b392e24bfd83e652723dad4ddf.zip cpython-ed21d0c1f4bd17b392e24bfd83e652723dad4ddf.tar.gz cpython-ed21d0c1f4bd17b392e24bfd83e652723dad4ddf.tar.bz2 |
gh-101100: Improve documentation for attributes on instance methods (#112832)
Diffstat (limited to 'Doc/library/inspect.rst')
-rw-r--r-- | Doc/library/inspect.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst index 0138557..8381e50 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`. |