Skip to content

Commit 8d751c7

Browse files
authored
Imprecise reference to example corrected
Modified one line of descriptive text. The text refers to "our example," despite there being five other examples in between the reference and the actual example to which the reference is intended. I added the word "previous" and parentheses with the text "first example on Class Objects," where "Class Objects" is a link to that section.
1 parent 979d92f commit 8d751c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/tutorial/classes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ function that "belongs to" an object.
344344

345345
Valid method names of an instance object depend on its class. By definition,
346346
all attributes of a class that are function objects define corresponding
347-
methods of its instances. So in our example, ``x.f`` is a valid method
347+
methods of its instances. So in our previous example (first example in :ref:`tut-classobjects`), ``x.f`` is a valid method
348348
reference, since ``MyClass.f`` is a function, but ``x.i`` is not, since
349349
``MyClass.i`` is not. But ``x.f`` is not the same thing as ``MyClass.f`` --- it
350350
is a *method object*, not a function object.

0 commit comments

Comments
 (0)