Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Doc/tutorial/classes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ function that "belongs to" an object.

Valid method names of an instance object depend on its class. By definition,
all attributes of a class that are function objects define corresponding
methods of its instances. So in our example, ``x.f`` is a valid method
methods of its instances. So in our previous example (first example in :ref:`tut-classobjects`), ``x.f`` is a valid method
Comment thread
gabriel-1607 marked this conversation as resolved.
Outdated
reference, since ``MyClass.f`` is a function, but ``x.i`` is not, since
``MyClass.i`` is not. But ``x.f`` is not the same thing as ``MyClass.f`` --- it
is a *method object*, not a function object.
Expand Down
Loading