Skip to content

Commit b7722ed

Browse files
Remove incorrect mention of method.__class__ in descriptor docs (GH-21665) (GH-21668)
1 parent 7cfede6 commit b7722ed

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Doc/howto/descriptor.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -312,14 +312,12 @@ Running the interpreter shows how the function descriptor works in practice::
312312
>>> d.f
313313
<bound method D.f of <__main__.D object at 0x00B18C90>>
314314

315-
# Internally, the bound method stores the underlying function,
316-
# the bound instance, and the class of the bound instance.
315+
# Internally, the bound method stores the underlying function and
316+
# the bound instance.
317317
>>> d.f.__func__
318318
<function D.f at 0x1012e5ae8>
319319
>>> d.f.__self__
320320
<__main__.D object at 0x1012e1f98>
321-
>>> d.f.__class__
322-
<class 'method'>
323321

324322

325323
Static Methods and Class Methods

0 commit comments

Comments
 (0)