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
e7eed78f
Kaydet (Commit)
e7eed78f
authored
Ara 24, 2018
tarafından
Jess Shapiro
Kaydeden (comit)
Raymond Hettinger
Ara 24, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Clarify the behavior of the staticmethod builtin (GH-4362)
üst
d83f5bda
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
funcobject.c
Objects/funcobject.c
+4
-2
No files found.
Objects/funcobject.c
Dosyayı görüntüle @
e7eed78f
...
...
@@ -838,7 +838,8 @@ PyClassMethod_New(PyObject *callable)
...
It can be called either on the class (e.g. C.f()) or on an instance
(e.g. C().f()); the instance is ignored except for its class.
(e.g. C().f()). Both the class and the instance are ignored, and
neither is passed implicitly as the first argument to the method.
Static methods in Python are similar to those found in Java or C++.
For a more advanced concept, see class methods above.
...
...
@@ -945,7 +946,8 @@ To declare a static method, use this idiom:\n\
...
\n
\
\n
\
It can be called either on the class (e.g. C.f()) or on an instance
\n
\
(e.g. C().f()). The instance is ignored except for its class.
\n
\
(e.g. C().f()). Both the class and the instance are ignored, and
\n
\
neither is passed implicitly as the first argument to the method.
\n
\
\n
\
Static methods in Python are similar to those found in Java or C++.
\n
\
For a more advanced concept, see the classmethod builtin."
);
...
...
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