]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-114069: Revise Tutorial Methods paragraph (#114127)
authorTerry Jan Reedy <tjreedy@udel.edu>
Tue, 16 Jan 2024 16:33:05 +0000 (11:33 -0500)
committerGitHub <noreply@github.com>
Tue, 16 Jan 2024 16:33:05 +0000 (11:33 -0500)
Remove excess words in the first and third sentences.

Doc/tutorial/classes.rst

index 3bf138ca225ee5738ff7f280acb621fbe78688db..d1c303ef03702775927eb95b5ca5a4229ef34848 100644 (file)
@@ -386,12 +386,11 @@ general, calling a method with a list of *n* arguments is equivalent to calling
 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 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
+In general, methods work as follows.  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,
+references to both the instance object and the function object
+are packed into a method object.  When the method object is called
 with an argument list, a new argument list is constructed from the instance
 object and the argument list, and the function object is called with this new
 argument list.