diff options
author | Aaron Ang <aaronang@users.noreply.github.com> | 2018-07-25 14:21:32 (GMT) |
---|---|---|
committer | Tal Einat <taleinat+github@gmail.com> | 2018-07-25 14:21:32 (GMT) |
commit | c0f0a7669c73c0d444851dd4c5299de2479214cc (patch) | |
tree | 0133af83b02c6db5cce25138af5ff446ab33750d | |
parent | ff64add8d4be2e37c552ba702f629b0b6639cd33 (diff) | |
download | cpython-c0f0a7669c73c0d444851dd4c5299de2479214cc.zip cpython-c0f0a7669c73c0d444851dd4c5299de2479214cc.tar.gz cpython-c0f0a7669c73c0d444851dd4c5299de2479214cc.tar.bz2 |
bpo-28677: Improve phrasing of when instance attribute is referenced (GH-6208)
-rw-r--r-- | Doc/tutorial/classes.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/tutorial/classes.rst b/Doc/tutorial/classes.rst index b8f1226..83b7db7 100644 --- a/Doc/tutorial/classes.rst +++ b/Doc/tutorial/classes.rst @@ -387,8 +387,8 @@ the corresponding function with an argument list that is created by inserting the method's instance object before the first argument. If you still don't understand how methods work, a look at the implementation can -perhaps clarify matters. When an instance attribute is referenced that isn't a -data attribute, its class is searched. If the name denotes a valid class +perhaps clarify matters. When a non-data attribute of an instance is +referenced, the instance's class is searched. If the name denotes a valid class attribute that is a function object, a method object is created by packing (pointers to) the instance object and the function object just found together in an abstract object: this is the method object. When the method object is called |