mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
[3.12] gh-119016: Remove outdated sentences from the "classes" tutorial (GH-119130) (#119926)
Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
parent
46545d3244
commit
e57a4a19a1
1 changed files with 1 additions and 5 deletions
|
@ -338,11 +338,7 @@ code will print the value ``16``, without leaving a trace::
|
||||||
del x.counter
|
del x.counter
|
||||||
|
|
||||||
The other kind of instance attribute reference is a *method*. A method is a
|
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
|
function that "belongs to" an object.
|
||||||
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.)
|
|
||||||
|
|
||||||
.. index:: pair: object; method
|
.. index:: pair: object; method
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue