summaryrefslogtreecommitdiffstats
path: root/Doc/howto/descriptor.rst
diff options
context:
space:
mode:
authorYonatan Goldschmidt <yon.goldschmidt@gmail.com>2020-07-28 23:56:26 (GMT)
committerGitHub <noreply@github.com>2020-07-28 23:56:26 (GMT)
commitf6a16e8a82d5673bc1897e0f251deb5173095689 (patch)
tree45dede2eda2bb61f428607097069612ce2d54046 /Doc/howto/descriptor.rst
parent34cd3e9f6a87f9c50edac893b0d5ae46c4e48ee3 (diff)
downloadcpython-f6a16e8a82d5673bc1897e0f251deb5173095689.zip
cpython-f6a16e8a82d5673bc1897e0f251deb5173095689.tar.gz
cpython-f6a16e8a82d5673bc1897e0f251deb5173095689.tar.bz2
Remove incorrect mention of method.__class__ in descriptor docs (GH-21665)
Diffstat (limited to 'Doc/howto/descriptor.rst')
-rw-r--r--Doc/howto/descriptor.rst6
1 files changed, 2 insertions, 4 deletions
diff --git a/Doc/howto/descriptor.rst b/Doc/howto/descriptor.rst
index 6928917..b792b6c 100644
--- a/Doc/howto/descriptor.rst
+++ b/Doc/howto/descriptor.rst
@@ -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