[Python-checkins] bpo-28677: Improve phrasing of when instance attribute is referenced (GH-6208)
Tal Einat
webhook-mailer at python.org
Wed Jul 25 13:52:22 EDT 2018
https://github.com/python/cpython/commit/ec02c58f5a6fdb06b769f53255fcb5d393812160
commit: ec02c58f5a6fdb06b769f53255fcb5d393812160
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: Tal Einat <taleinat+github at gmail.com>
date: 2018-07-25T20:52:18+03:00
summary:
bpo-28677: Improve phrasing of when instance attribute is referenced (GH-6208)
(cherry picked from commit c0f0a7669c73c0d444851dd4c5299de2479214cc)
Co-authored-by: Aaron Ang <aaronang at users.noreply.github.com>
files:
M Doc/tutorial/classes.rst
diff --git a/Doc/tutorial/classes.rst b/Doc/tutorial/classes.rst
index 4676ef4b8a60..f26838cddbfa 100644
--- a/Doc/tutorial/classes.rst
+++ b/Doc/tutorial/classes.rst
@@ -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
More information about the Python-checkins
mailing list