Skip to content

Commit

Permalink
bpo-28677: Improve phrasing of when instance attribute is referenced (G…
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronang authored and taleinat committed Jul 25, 2018
1 parent ff64add commit c0f0a76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/tutorial/classes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c0f0a76

Please sign in to comment.