Commit 1c8f6553 authored by Miss Islington (bot)'s avatar Miss Islington (bot) Committed by GitHub

bpo-28677: Improve phrasing of when instance attribute is referenced (GH-6208)

(cherry picked from commit c0f0a766)
Co-authored-by: default avatarAaron Ang <aaronang@users.noreply.github.com>
parent 613cbf3d
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment