Mailing List Archive

Remove incorrect mention of method.__class__ in descriptor docs (GH-21665)
https://github.com/python/cpython/commit/f6a16e8a82d5673bc1897e0f251deb5173095689
commit: f6a16e8a82d5673bc1897e0f251deb5173095689
branch: master
author: Yonatan Goldschmidt <yon.goldschmidt@gmail.com>
committer: GitHub <noreply@github.com>
date: 2020-07-28T16:56:26-07:00
summary:

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

files:
M Doc/howto/descriptor.rst

diff --git a/Doc/howto/descriptor.rst b/Doc/howto/descriptor.rst
index 6928917dbe420..b792b6c6ab77f 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

_______________________________________________
Python-checkins mailing list
Python-checkins@python.org
https://mail.python.org/mailman/listinfo/python-checkins