Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
87b90adc
Kaydet (Commit)
87b90adc
authored
Ock 20, 2006
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Patch #1410783: add documentation links for static/classmethod
üst
1de37002
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
libfuncs.tex
Doc/lib/libfuncs.tex
+9
-1
No files found.
Doc/lib/libfuncs.tex
Dosyayı görüntüle @
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