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
54d8b680
Kaydet (Commit)
54d8b680
authored
Haz 25, 2005
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bug [ 1166582 ] IterableUserDict not in docs
üst
6df3fd37
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
9 deletions
+15
-9
libuserdict.tex
Doc/lib/libuserdict.tex
+15
-9
No files found.
Doc/lib/libuserdict.tex
Dosyayı görüntüle @
54d8b680
...
...
@@ -21,18 +21,24 @@ existing methods or adding new ones.
The
\module
{
UserDict
}
module defines the
\class
{
UserDict
}
class
and
\class
{
DictMixin
}
:
\begin{classdesc}
{
UserDict
}{
\optional
{
initialdata
}}
Class that simulates a dictionary. The instance's
contents are kept in a regular dictionary, which is accessible via the
\member
{
data
}
attribute of
\class
{
UserDict
}
instances. If
\var
{
initialdata
}
is provided,
\member
{
data
}
is initialized with its
contents; note that a reference to
\var
{
initialdata
}
will not be kept,
allowing it be used for other purposes.
\begin{classdesc}
{
UserDict
}{
\optional
{
initialdata
}}
Class that simulates a dictionary. The instance's contents are kept
in a regular dictionary, which is accessible via the
\member
{
data
}
attribute of
\class
{
UserDict
}
instances. If
\var
{
initialdata
}
is
provided,
\member
{
data
}
is initialized with its contents; note that a
reference to
\var
{
initialdata
}
will not be kept, allowing it be used
for other purposes.
\note
{
For backward compatibility, instances of
\class
{
UserDict
}
are not iterable.
}
\end{classdesc}
\begin{classdesc}
{
IterableUserDict
}{
\optional
{
initialdata
}}
Subclass of
\class
{
UserDict
}
that supports direct iteration (e.g.
\code
{
for key in myDict
}
).
\end{classdesc}
In addition to supporting the methods and operations of mappings (see
section
\ref
{
typesmapping
}
),
\class
{
UserDict
}
instances provide the
following attribute:
section
\ref
{
typesmapping
}
),
\class
{
UserDict
}
and
\class
{
IterableUserDict
}
instances provide the
following attribute:
\begin{memberdesc}
{
data
}
A real dictionary used to store the contents of the
\class
{
UserDict
}
...
...
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