Simpler clarification of the reference

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
This commit is contained in:
Gabriel Enrique Ambrosini Cabrera 2026-01-24 23:53:15 -05:00 committed by GitHub
parent 8d751c704d
commit 4e3d752474
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 previous example (first example in :ref:`tut-classobjects`), ``x.f`` is a valid method
methods of its instances. So in our :ref:`previous example <tut-classobjects>`, ``x.f`` is a valid method
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.