Skip to content

Commit c0f0a76

Browse files
aaronangtaleinat
authored andcommitted
bpo-28677: Improve phrasing of when instance attribute is referenced (GH-6208)
1 parent ff64add commit c0f0a76

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
@@ -387,8 +387,8 @@ the corresponding function with an argument list that is created by inserting
387387
the method's instance object before the first argument.
388388

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

0 commit comments

Comments
 (0)