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
fcda560e
Kaydet (Commit)
fcda560e
authored
Ock 07, 1998
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix a typo (the word "a" was spelled "c"!).
Added index entries & \label{} constructs.
üst
c9a32ab2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
libuserdict.tex
Doc/lib/libuserdict.tex
+6
-1
libuserdict.tex
Doc/libuserdict.tex
+6
-1
No files found.
Doc/lib/libuserdict.tex
Dosyayı görüntüle @
fcda560e
\section
{
Standard Modules
\sectcode
{
UserDict
}
and
\sectcode
{
UserList
}}
\stmodindex
{
UserDict
}
\label
{
module-UserDict
}
\label
{
module-UserList
}
Each of these modules defines a class that acts as a wrapper around
either dictionary or list objects. They're useful base classes for
your own dictionary-like or list-like classes, which can inherit from
...
...
@@ -14,6 +18,7 @@ contents are kept in a regular dictionary, which is accessible via the
\code
{
data
}
attribute of
\code
{
UserDict
}
instances.
\end{funcdesc}
\stmodindex
{
UserList
}
\renewcommand
{
\indexsubitem
}{
(in module UserList)
}
The
\code
{
UserList
}
module defines the
\code
{
UserList
}
class:
...
...
@@ -21,7 +26,7 @@ The \code{UserList} module defines the \code{UserList} class:
Return a class instance that simulates a list. The instance's
contents are kept in a regular list, which is accessible via the
\code
{
data
}
attribute of
\code
{
UserList
}
instances. The instance's
contents are initially set to
c
copy of
\var
{
list
}
, defaulting to the
contents are initially set to
a
copy of
\var
{
list
}
, defaulting to the
empty list
\code
{
[]
}
.
\var
{
list
}
can be either a regular Python list,
or an instance of
\code
{
UserList
}
(or a subclass).
\end{funcdesc}
Doc/libuserdict.tex
Dosyayı görüntüle @
fcda560e
\section
{
Standard Modules
\sectcode
{
UserDict
}
and
\sectcode
{
UserList
}}
\stmodindex
{
UserDict
}
\label
{
module-UserDict
}
\label
{
module-UserList
}
Each of these modules defines a class that acts as a wrapper around
either dictionary or list objects. They're useful base classes for
your own dictionary-like or list-like classes, which can inherit from
...
...
@@ -14,6 +18,7 @@ contents are kept in a regular dictionary, which is accessible via the
\code
{
data
}
attribute of
\code
{
UserDict
}
instances.
\end{funcdesc}
\stmodindex
{
UserList
}
\renewcommand
{
\indexsubitem
}{
(in module UserList)
}
The
\code
{
UserList
}
module defines the
\code
{
UserList
}
class:
...
...
@@ -21,7 +26,7 @@ The \code{UserList} module defines the \code{UserList} class:
Return a class instance that simulates a list. The instance's
contents are kept in a regular list, which is accessible via the
\code
{
data
}
attribute of
\code
{
UserList
}
instances. The instance's
contents are initially set to
c
copy of
\var
{
list
}
, defaulting to the
contents are initially set to
a
copy of
\var
{
list
}
, defaulting to the
empty list
\code
{
[]
}
.
\var
{
list
}
can be either a regular Python list,
or an instance of
\code
{
UserList
}
(or a subclass).
\end{funcdesc}
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