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
323fe5df
Kaydet (Commit)
323fe5df
authored
Agu 23, 2000
tarafından
Skip Montanaro
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix list comprehension discussion to use \keyword macro instead of simply
quoting keywords.
üst
297bf7ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
ref5.tex
Doc/ref/ref5.tex
+4
-3
No files found.
Doc/ref/ref5.tex
Dosyayı görüntüle @
323fe5df
...
@@ -164,10 +164,11 @@ by providing either a list of expressions or a list comprehension.
...
@@ -164,10 +164,11 @@ by providing either a list of expressions or a list comprehension.
When a comma-separated list of expressions is supplied, its elements are
When a comma-separated list of expressions is supplied, its elements are
evaluated from left to right and placed into the list object in that
evaluated from left to right and placed into the list object in that
order. When a list comprehension is supplied, it consists of a
order. When a list comprehension is supplied, it consists of a
single expression followed by at least one
"for" clause and zero or more
single expression followed by at least one
\keyword
{
for
}
clause and zero or
"for" or "if"
clauses. In this
more
\keyword
{
for
}
or
\keyword
{
if
}
clauses. In this
case, the elements of the new list are those that would be produced
case, the elements of the new list are those that would be produced
by considering each of the "for" or "if" clauses a block, nesting from
by considering each of the
\keyword
{
for
}
or
\keyword
{
if
}
clauses a block,
nesting from
left to right, and evaluating the expression to produce a list element
left to right, and evaluating the expression to produce a list element
each time the innermost block is reached.
each time the innermost block is reached.
\obindex
{
list
}
\obindex
{
list
}
...
...
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