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
eacdec6b
Kaydet (Commit)
eacdec6b
authored
May 02, 2001
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Update the filter() and list() descriptions to include information about
the support for containers and iteration.
üst
93656e76
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
libfuncs.tex
Doc/lib/libfuncs.tex
+14
-12
No files found.
Doc/lib/libfuncs.tex
Dosyayı görüntüle @
eacdec6b
...
...
@@ -234,12 +234,13 @@ class instances are callable if they have a \method{__call__()} method.
\end{funcdesc}
\begin{funcdesc}
{
filter
}{
function, list
}
Construct a list from those elements of
\var
{
list
}
for which
\var
{
function
}
returns true. If
\var
{
list
}
is a string or a tuple,
the result also has that type; otherwise it is always a list. If
\var
{
function
}
is
\code
{
None
}
, the identity function is assumed,
i.e.
\
all elements of
\var
{
list
}
that are false (zero or empty) are
removed.
Construct a list from those elements of
\var
{
list
}
for which
\var
{
function
}
returns true.
\var
{
list
}
may be either a sequence, a
container which supports iteration, or an iterator, If
\var
{
list
}
is a string or a tuple, the result also has that type; otherwise it
is always a list. If
\var
{
function
}
is
\code
{
None
}
, the identity
function is assumed, i.e.
\
all elements of
\var
{
list
}
that are false
(zero or empty) are removed.
\end{funcdesc}
\begin{funcdesc}
{
float
}{
x
}
...
...
@@ -378,12 +379,13 @@ raised.
\end{funcdesc}
\begin{funcdesc}
{
list
}{
sequence
}
Return a list whose items are the same and in the same order as
\var
{
sequence
}
's items. If
\var
{
sequence
}
is already a list,
a copy is made and returned, similar to
\code
{
\var
{
sequence
}
[:]
}
.
For instance,
\code
{
list('abc')
}
returns
returns
\code
{
['a', 'b', 'c']
}
and
\code
{
list( (1, 2, 3) )
}
returns
\code
{
[1, 2, 3]
}
.
Return a list whose items are the same and in the same order as
\var
{
sequence
}
's items.
\var
{
sequence
}
may be either a sequence, a
container that supports iteration, or an iterator object. If
\var
{
sequence
}
is already a list, a copy is made and returned,
similar to
\code
{
\var
{
sequence
}
[:]
}
. For instance,
\code
{
list('abc')
}
returns
\code
{
['a', 'b', 'c']
}
and
\code
{
list(
(1, 2, 3) )
}
returns
\code
{
[1, 2, 3]
}
.
\end{funcdesc}
\begin{funcdesc}
{
locals
}{}
...
...
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