Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
87b90adc
Commit
87b90adc
authored
Jan 20, 2006
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch #1410783: add documentation links for static/classmethod
parent
1de37002
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
Doc/lib/libfuncs.tex
Doc/lib/libfuncs.tex
+9
-1
No files found.
Doc/lib/libfuncs.tex
View file @
87b90adc
...
...
@@ -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}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment