diff options
author | Georg Brandl <georg@python.org> | 2006-01-20 21:33:54 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2006-01-20 21:33:54 (GMT) |
commit | 87b90adc28c23b7653ba7c08012e2cb2ac3b461a (patch) | |
tree | b56af5fbbcfb94a27e19f9f3a80097218ba63e0f /Doc/lib | |
parent | 1de37002bf580d23dbef80087fa36b9c07f9e3c9 (diff) | |
download | cpython-87b90adc28c23b7653ba7c08012e2cb2ac3b461a.zip cpython-87b90adc28c23b7653ba7c08012e2cb2ac3b461a.tar.gz cpython-87b90adc28c23b7653ba7c08012e2cb2ac3b461a.tar.bz2 |
Patch #1410783: add documentation links for static/classmethod
Diffstat (limited to 'Doc/lib')
-rw-r--r-- | Doc/lib/libfuncs.tex | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Doc/lib/libfuncs.tex b/Doc/lib/libfuncs.tex index 6146c38..12dbc0c 100644 --- a/Doc/lib/libfuncs.tex +++ b/Doc/lib/libfuncs.tex @@ -151,6 +151,10 @@ class C: Class methods are different than \Cpp{} or Java static methods. If you want those, see \function{staticmethod()} in this section. + + For more information on class methods, consult the documentation on the + standard type hierarchy in chapter 3 of the + \citetitle[../ref/types.html]{Python Reference Manual} (at the bottom). \versionadded{2.2} \versionchanged[Function decorator syntax added]{2.4} \end{funcdesc} @@ -987,7 +991,7 @@ class C: The \code{@staticmethod} form is a function decorator -- see the description of function definitions in chapter 7 of the - \citetitle[../ref/ref.html]{Python Reference Manual} for details. + \citetitle[../ref/function.html]{Python Reference Manual} for details. It can be called either on the class (such as \code{C.f()}) or on an instance (such as \code{C().f()}). The instance is ignored except @@ -996,6 +1000,10 @@ class C: Static methods in Python are similar to those found in Java or \Cpp. For a more advanced concept, see \function{classmethod()} in this section. + + For more information on static methods, consult the documentation on the + standard type hierarchy in chapter 3 of the + \citetitle[../ref/types.html]{Python Reference Manual} (at the bottom). \versionadded{2.2} \versionchanged[Function decorator syntax added]{2.4} \end{funcdesc} |