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
121c98cc
Kaydet (Commit)
121c98cc
authored
Nis 14, 2006
tarafından
Andrew M. Kuchling
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Typo fixes
üst
c7095843
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
libcollections.tex
Doc/lib/libcollections.tex
+2
-2
No files found.
Doc/lib/libcollections.tex
Dosyayı görüntüle @
121c98cc
...
@@ -279,7 +279,7 @@ a sequence of key-value pairs into a dictionary of lists:
...
@@ -279,7 +279,7 @@ a sequence of key-value pairs into a dictionary of lists:
When each key is encountered for the first time, it is not already in the
When each key is encountered for the first time, it is not already in the
mapping; so an entry is automatically created using the
mapping; so an entry is automatically created using the
\member
{
default
_
factory
}
function which returns an empty
\class
{
list
}
. The
\member
{
default
_
factory
}
function which returns an empty
\class
{
list
}
. The
\method
{
list.append()
}
operation then attaches the value the new list. When
\method
{
list.append()
}
operation then attaches the value t
o t
he new list. When
keys are encountered again, the look-up proceeds normally (returning the list
keys are encountered again, the look-up proceeds normally (returning the list
for that key) and the
\method
{
list.append()
}
operation adds another value to
for that key) and the
\method
{
list.append()
}
operation adds another value to
the list. This technique is simpler and faster than an equivalent technique
the list. This technique is simpler and faster than an equivalent technique
...
@@ -308,7 +308,7 @@ languages):
...
@@ -308,7 +308,7 @@ languages):
[('i', 4), ('p', 2), ('s', 4), ('m', 1)]
[('i', 4), ('p', 2), ('s', 4), ('m', 1)]
\end{verbatim}
\end{verbatim}
When a letter i
n
first encountered, it is missing from the mapping, so the
When a letter i
s
first encountered, it is missing from the mapping, so the
\member
{
default
_
factory
}
function calls
\function
{
int()
}
to supply a default
\member
{
default
_
factory
}
function calls
\function
{
int()
}
to supply a default
count of zero. The increment operation then builds of the count for each
count of zero. The increment operation then builds of the count for each
letter. This technique makes counting simpler and faster than an equivalent
letter. This technique makes counting simpler and faster than an equivalent
...
...
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