mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
bpo-28677: Improve phrasing of when instance attribute is referenced (GH-6208)
This commit is contained in:
parent
ff64add8d4
commit
c0f0a7669c
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
the method's instance object before the first argument.
|
||||||
|
|
||||||
If you still don't understand how methods work, a look at the implementation can
|
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
|
perhaps clarify matters. When a non-data attribute of an instance is
|
||||||
data attribute, its class is searched. If the name denotes a valid class
|
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
|
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
|
(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
|
an abstract object: this is the method object. When the method object is called
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue