Skip to content

Commit c618f7d

Browse files
gh-119016: Remove outdated sentences from the "classes" tutorial (#119130)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
1 parent 53b1981 commit c618f7d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Doc/tutorial/classes.rst

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -338,11 +338,7 @@ code will print the value ``16``, without leaving a trace::
338338
del x.counter
339339

340340
The other kind of instance attribute reference is a *method*. A method is a
341-
function that "belongs to" an object. (In Python, the term method is not unique
342-
to class instances: other object types can have methods as well. For example,
343-
list objects have methods called append, insert, remove, sort, and so on.
344-
However, in the following discussion, we'll use the term method exclusively to
345-
mean methods of class instance objects, unless explicitly stated otherwise.)
341+
function that "belongs to" an object.
346342

347343
.. index:: pair: object; method
348344

0 commit comments

Comments
 (0)