]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix the confusing "User-defined methods" reference in the datamodel (#114276)
authorcdzhan <zhancdi@163.com>
Sun, 21 Jan 2024 03:45:38 +0000 (11:45 +0800)
committerGitHub <noreply@github.com>
Sun, 21 Jan 2024 03:45:38 +0000 (03:45 +0000)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Doc/reference/datamodel.rst

index ca29a3712dfa386f38c2390911fc147d22737ce6..0a1c1d58558e94f28cf633a878fd660fe0bc9f5c 100644 (file)
@@ -1529,7 +1529,7 @@ Class method objects
 A class method object, like a static method object, is a wrapper around another
 object that alters the way in which that object is retrieved from classes and
 class instances. The behaviour of class method objects upon such retrieval is
-described above, under "User-defined methods". Class method objects are created
+described above, under :ref:`"instance methods" <instance-methods>`. Class method objects are created
 by the built-in :func:`classmethod` constructor.