Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
c0f0a766
Commit
c0f0a766
authored
Jul 25, 2018
by
Aaron Ang
Committed by
Tal Einat
Jul 25, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-28677: Improve phrasing of when instance attribute is referenced (GH-6208)
parent
ff64add8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Doc/tutorial/classes.rst
Doc/tutorial/classes.rst
+2
-2
No files found.
Doc/tutorial/classes.rst
View file @
c0f0a766
...
@@ -387,8 +387,8 @@ the corresponding function with an argument list that is created by inserting
...
@@ -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 a
n instance attribute is referenced that isn't a
perhaps clarify matters. When a
non-data attribute of an instance is
data attribute, it
s 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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment