]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove incorrect mention of method.__class__ in descriptor docs (GH-21665) (GH-21668)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 29 Jul 2020 01:39:43 +0000 (18:39 -0700)
committerGitHub <noreply@github.com>
Wed, 29 Jul 2020 01:39:43 +0000 (18:39 -0700)
Doc/howto/descriptor.rst

index 9856e6caec09286421c91d4d82622a7ddce48c9d..4d25d2ccb66507db03a206f440c02b723586494b 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