Skip to content

Commit

Permalink
pythongh-119016: Remove outdated sentences from the "classes" tutorial (
Browse files Browse the repository at this point in the history
python#119130)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
  • Loading branch information
nineteendo and AlexWaygood authored Jun 1, 2024
1 parent 53b1981 commit c618f7d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Doc/tutorial/classes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c618f7d

Please sign in to comment.