diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-07-25 17:40:09 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-25 17:40:09 (GMT) |
| commit | 1c8f6553ad5a7f97495972da8f35f4dabcb372d4 (patch) | |
| tree | 3804739847c896de2a9b20f0e55e23fd24526357 | |
| parent | 613cbf3d4dff7bcbd85c991695c8c35e75147aa4 (diff) | |
| download | cpython-1c8f6553ad5a7f97495972da8f35f4dabcb372d4.zip cpython-1c8f6553ad5a7f97495972da8f35f4dabcb372d4.tar.gz cpython-1c8f6553ad5a7f97495972da8f35f4dabcb372d4.tar.bz2 | |
bpo-28677: Improve phrasing of when instance attribute is referenced (GH-6208)
(cherry picked from commit c0f0a7669c73c0d444851dd4c5299de2479214cc)
Co-authored-by: Aaron Ang <aaronang@users.noreply.github.com>
| -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 7f45c76..1058b77 100644 --- a/Doc/tutorial/classes.rst +++ b/Doc/tutorial/classes.rst @@ -328,8 +328,8 @@ the corresponding function with an argument list that is created by inserting the method's 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 |
