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
f41beace
Kaydet (Commit)
f41beace
authored
Tem 05, 2006
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Patch #1517490: fix glitches in filter() docs.
üst
add19111
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
libfuncs.tex
Doc/lib/libfuncs.tex
+4
-4
No files found.
Doc/lib/libfuncs.tex
Dosyayı görüntüle @
f41beace
...
@@ -468,10 +468,10 @@ class C:
...
@@ -468,10 +468,10 @@ class C:
Construct a list from those elements of
\var
{
list
}
for which
Construct a list from those elements of
\var
{
list
}
for which
\var
{
function
}
returns true.
\var
{
list
}
may be either a sequence, a
\var
{
function
}
returns true.
\var
{
list
}
may be either a sequence, a
container which supports iteration, or an iterator, If
\var
{
list
}
container which supports iteration, or an iterator, If
\var
{
list
}
is a string
or a tuple, the result also has that type; otherwise i
t
is a string
(either
\code
{
str
}
or
\code
{
unicode
}
) or a tuple, the resul
t
is always a list. If
\var
{
function
}
is
\code
{
None
}
, the identity
also has that type; otherwise it is always a list. If
\var
{
function
}
is
function is assumed, that is, all elements of
\var
{
list
}
that are false
\code
{
None
}
, the identity function is assumed, that is, all elements of
(zero or empty)
are removed.
\var
{
list
}
that are false
are removed.
Note that
\code
{
filter(function,
\var
{
list
}
)
}
is equivalent to
Note that
\code
{
filter(function,
\var
{
list
}
)
}
is equivalent to
\code
{
[item for item in
\var
{
list
}
if function(item)]
}
if function is
\code
{
[item for item in
\var
{
list
}
if function(item)]
}
if function is
...
...
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