Remove incorrect mention of method.__class__ in descriptor docs (GH-21665)

This commit is contained in:
Yonatan Goldschmidt 2020-07-29 02:56:26 +03:00 committed by GitHub
parent 34cd3e9f6a
commit f6a16e8a82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -312,14 +312,12 @@ Running the interpreter shows how the function descriptor works in practice::
>>> d.f
<bound method D.f of <__main__.D object at 0x00B18C90>>
# Internally, the bound method stores the underlying function,
# the bound instance, and the class of the bound instance.
# Internally, the bound method stores the underlying function and
# the bound instance.
>>> d.f.__func__
<function D.f at 0x1012e5ae8>
>>> d.f.__self__
<__main__.D object at 0x1012e1f98>
>>> d.f.__class__
<class 'method'>
Static Methods and Class Methods