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
442c7c77
Kaydet (Commit)
442c7c77
authored
Agu 07, 2002
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Clarify that the bool instances are acceptable return values from
__nonzero__(), in response to SF bug #579991.
üst
2863c10a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
libstdtypes.tex
Doc/lib/libstdtypes.tex
+5
-4
No files found.
Doc/lib/libstdtypes.tex
Dosyayı görüntüle @
442c7c77
...
...
@@ -33,10 +33,10 @@ The following values are considered false:
\begin{itemize}
\item
\code
{
None
}
\withsubitem
{
(Built-in object)
}{
\ttindex
{
None
}}
\withsubitem
{
(Built-in object)
}{
\ttindex
{
None
}}
\item
\code
{
False
}
\withsubitem
{
(Built-in object)
}{
\ttindex
{
False
}}
\withsubitem
{
(Built-in object)
}{
\ttindex
{
False
}}
\item
zero of any numeric type, for example,
\code
{
0
}
,
\code
{
0L
}
,
\code
{
0.0
}
,
\code
{
0j
}
.
...
...
@@ -46,8 +46,9 @@ The following values are considered false:
\item
any empty mapping, for example,
\code
{
\{\}
}
.
\item
instances of user-defined classes, if the class defines a
\method
{__
nonzero
__
()
}
or
\method
{__
len
__
()
}
method, when that
method returns the integer zero.
\footnote
{
Additional
\method
{__
nonzero
__
()
}
or
\method
{__
len
__
()
}
method, when that
method returns the integer zero or
\class
{
bool
}
value
\code
{
False
}
.
\footnote
{
Additional
information on these special methods may be found in the
\citetitle
[../ref/ref.html]
{
Python Reference Manual
}
.
}
...
...
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