Mailing List Archive

Remove incorrect mention of method.__class__ in descriptor docs (GH-21665) (GH-21668)
https://github.com/python/cpython/commit/b7722ed0f39120c66186aae0f63a82fdff93c55d
commit: b7722ed0f39120c66186aae0f63a82fdff93c55d
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
committer: GitHub <noreply@github.com>
date: 2020-07-28T18:39:43-07:00
summary:

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

files:
M Doc/howto/descriptor.rst

diff --git a/Doc/howto/descriptor.rst b/Doc/howto/descriptor.rst
index 9856e6caec092..4d25d2ccb6650 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