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
7659a87e
Kaydet (Commit)
7659a87e
authored
Mar 01, 2007
tarafından
Andrew M. Kuchling
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add NamedTuple
üst
052c3714
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
whatsnew26.tex
Doc/whatsnew/whatsnew26.tex
+16
-0
No files found.
Doc/whatsnew/whatsnew26.tex
Dosyayı görüntüle @
7659a87e
...
...
@@ -76,6 +76,22 @@ details.
\begin{itemize}
\item
New data type in the
\module
{
collections
}
module:
\class
{
NamedTuple(
\var
{
typename
}
,
\var
{
fieldnames
}
)
}
is a factory function that
creates subclasses of the standard tuple whose fields are accessible
by name as well as index. For example:
\begin{verbatim}
var
_
type = collections.NamedTuple('variable',
'id name type size')
var = var
_
type(1, 'frequency', 'int', 4)
print var[0], var.id # Equivalent
print var[2], var.type # Equivalent
\end{verbatim}
(Contributed by Raymond Hettinger.)
\item
New function in the
\module
{
heapq
}
module:
\function
{
merge(iter1, iter2, ...)
}
takes any number of iterables that return data
...
...
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