From 8d751c704db31e682c1c7afb6d4706a4ec29c79c Mon Sep 17 00:00:00 2001 From: Gabriel Enrique Ambrosini Cabrera Date: Sat, 24 Jan 2026 23:00:38 -0500 Subject: [PATCH 1/2] 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. --- Doc/tutorial/classes.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/tutorial/classes.rst b/Doc/tutorial/classes.rst index 9ab003d5cd3dd5..6d280d155f323a 100644 --- a/Doc/tutorial/classes.rst +++ b/Doc/tutorial/classes.rst @@ -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 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. From 4e3d7524745d51d18dc6d9d0d0934cb16a3e4943 Mon Sep 17 00:00:00 2001 From: Gabriel Enrique Ambrosini Cabrera Date: Sat, 24 Jan 2026 23:53:15 -0500 Subject: [PATCH 2/2] Simpler clarification of the reference Co-authored-by: Peter Bierma --- Doc/tutorial/classes.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/tutorial/classes.rst b/Doc/tutorial/classes.rst index 6d280d155f323a..df94d036d3b977 100644 --- a/Doc/tutorial/classes.rst +++ b/Doc/tutorial/classes.rst @@ -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 `, ``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.