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
fe703e06
Kaydet (Commit)
fe703e06
authored
Mar 20, 2004
tarafından
Raymond Hettinger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
SF bug #918371: hasattr()'s return type
Replace 1 and 0 with True and False.
üst
0813d76c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
libfuncs.tex
Doc/lib/libfuncs.tex
+2
-2
No files found.
Doc/lib/libfuncs.tex
Dosyayı görüntüle @
fe703e06
...
...
@@ -469,8 +469,8 @@ class C:
\end{funcdesc}
\begin{funcdesc}
{
hasattr
}{
object, name
}
The arguments are an object and a string. The result is
1
if the
string is the name of one of the object's attributes,
0
if not.
The arguments are an object and a string. The result is
\code
{
True
}
if the
string is the name of one of the object's attributes,
\code
{
False
}
if not.
(This is implemented by calling
\code
{
getattr(
\var
{
object
}
,
\var
{
name
}
)
}
and seeing whether it raises an exception or not.)
\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