diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-07-29 01:39:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-29 01:39:10 (GMT) |
commit | 0124f2b5e0f88ee7f5d40fca96dbf087cbe4764b (patch) | |
tree | 165b0df5406a9322fe5fb979d3c170c821e3779c | |
parent | 22216107f2890e7ee2ab055e4983b76ff9c62169 (diff) | |
download | cpython-0124f2b5e0f88ee7f5d40fca96dbf087cbe4764b.zip cpython-0124f2b5e0f88ee7f5d40fca96dbf087cbe4764b.tar.gz cpython-0124f2b5e0f88ee7f5d40fca96dbf087cbe4764b.tar.bz2 |
Remove incorrect mention of method.__class__ in descriptor docs (GH-21665) (GH-21667)
-rw-r--r-- | Doc/howto/descriptor.rst | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Doc/howto/descriptor.rst b/Doc/howto/descriptor.rst index 6928917..b792b6c 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 |