]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove incorrect mention of method.__class__ in descriptor docs (GH-21665)
authorYonatan Goldschmidt <yon.goldschmidt@gmail.com>
Tue, 28 Jul 2020 23:56:26 +0000 (02:56 +0300)
committerGitHub <noreply@github.com>
Tue, 28 Jul 2020 23:56:26 +0000 (16:56 -0700)
Doc/howto/descriptor.rst

index 6928917dbe4200317267923ce7d5494ae1aae7f3..b792b6c6ab77f2ebf7fceed39c48a0473ae66962 100644 (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