mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
gh-101100: Improve documentation for attributes on instance methods (#112832)
This commit is contained in:
parent
e4c0876033
commit
ed21d0c1f4
6 changed files with 75 additions and 40 deletions
|
|
@ -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`.
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue