Skip to content

Commit 1c8f655

Browse files
bpo-28677: Improve phrasing of when instance attribute is referenced (GH-6208)
(cherry picked from commit c0f0a76) Co-authored-by: Aaron Ang <[email protected]>
1 parent 613cbf3 commit 1c8f655

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/tutorial/classes.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,8 @@ the corresponding function with an argument list that is created by inserting
328328
the method's object before the first argument.
329329

330330
If you still don't understand how methods work, a look at the implementation can
331-
perhaps clarify matters. When an instance attribute is referenced that isn't a
332-
data attribute, its class is searched. If the name denotes a valid class
331+
perhaps clarify matters. When a non-data attribute of an instance is
332+
referenced, the instance's class is searched. If the name denotes a valid class
333333
attribute that is a function object, a method object is created by packing
334334
(pointers to) the instance object and the function object just found together in
335335
an abstract object: this is the method object. When the method object is called

0 commit comments

Comments
 (0)