Skip to content

Commit 3eeab87

Browse files
[3.12] gh-114069: Revise Tutorial Methods paragraph (GH-114127) (#114131)
gh-114069: Revise Tutorial Methods paragraph (GH-114127) Remove excess words in the first and third sentences. (cherry picked from commit 31a2543) Co-authored-by: Terry Jan Reedy <[email protected]>
1 parent 74485c0 commit 3eeab87

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Doc/tutorial/classes.rst

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -386,12 +386,11 @@ general, calling a method with a list of *n* arguments is equivalent to calling
386386
the corresponding function with an argument list that is created by inserting
387387
the method's instance object before the first argument.
388388

389-
If you still don't understand how methods work, a look at the implementation can
390-
perhaps clarify matters. When a non-data attribute of an instance is
391-
referenced, the instance's class is searched. If the name denotes a valid class
392-
attribute that is a function object, a method object is created by packing
393-
(pointers to) the instance object and the function object just found together in
394-
an abstract object: this is the method object. When the method object is called
389+
In general, methods work as follows. When a non-data attribute
390+
of an instance is referenced, the instance's class is searched.
391+
If the name denotes a valid class attribute that is a function object,
392+
references to both the instance object and the function object
393+
are packed into a method object. When the method object is called
395394
with an argument list, a new argument list is constructed from the instance
396395
object and the argument list, and the function object is called with this new
397396
argument list.

0 commit comments

Comments
 (0)