]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-119016: Remove outdated sentences from the "classes" tutorial (#119130)
authorNice Zombies <nineteendo19d0@gmail.com>
Sat, 1 Jun 2024 21:20:00 +0000 (23:20 +0200)
committerGitHub <noreply@github.com>
Sat, 1 Jun 2024 21:20:00 +0000 (21:20 +0000)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Doc/tutorial/classes.rst

index 7ab528acb370f212772b086e5772f580123b0025..1b64741c349ee941ca8083208614ed7b2836ee9e 100644 (file)
@@ -338,11 +338,7 @@ code will print the value ``16``, without leaving a trace::
    del x.counter
 
 The other kind of instance attribute reference is a *method*. A method is a
-function that "belongs to" an object.  (In Python, the term method is not unique
-to class instances: other object types can have methods as well.  For example,
-list objects have methods called append, insert, remove, sort, and so on.
-However, in the following discussion, we'll use the term method exclusively to
-mean methods of class instance objects, unless explicitly stated otherwise.)
+function that "belongs to" an object.
 
 .. index:: pair: object; method