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
1ce3604c
Kaydet (Commit)
1ce3604c
authored
Nis 07, 1998
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Separate UserDict and UserList documentation into separate sections.
üst
df0e3fcb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
20 deletions
+52
-20
libuserdict.tex
Doc/lib/libuserdict.tex
+26
-10
libuserdict.tex
Doc/libuserdict.tex
+26
-10
No files found.
Doc/lib/libuserdict.tex
Dosyayı görüntüle @
1ce3604c
\section
{
Standard Modules
\module
{
UserDict
}
and
\module
{
UserList
}}
\section
{
Standard Module
\module
{
UserDict
}}
\nodename
{
UserDict and UserList
}
\stmodindex
{
UserDict
}
\stmodindex
{
UserDict
}
\stmodindex
{
UserList
}
\label
{
module-UserDict
}
\label
{
module-UserDict
}
\label
{
module-UserList
}
Each of these modules
defines a class that acts as a wrapper around
This module
defines a class that acts as a wrapper around
either dictionary or list objects. They're useful base classe
s for
dictionary objects. It is a useful base clas
s for
your own dictionary-like
or list-like
classes, which can inherit from
your own dictionary-like classes, which can inherit from
them and override existing methods or add new ones. In this way one
them and override existing methods or add new ones. In this way one
can add new behaviours to dictionaries
or lists
.
can add new behaviours to dictionaries.
\setindexsubitem
{
(in module UserDict)
}
The
\module
{
UserDict
}
module defines the
\class
{
UserDict
}
class:
The
\module
{
UserDict
}
module defines the
\class
{
UserDict
}
class:
\begin{classdesc}
{
UserDict
}{}
\begin{classdesc}
{
UserDict
}{}
...
@@ -20,7 +16,22 @@ contents are kept in a regular dictionary, which is accessible via the
...
@@ -20,7 +16,22 @@ contents are kept in a regular dictionary, which is accessible via the
\member
{
data
}
attribute of
\class
{
UserDict
}
instances.
\member
{
data
}
attribute of
\class
{
UserDict
}
instances.
\end{classdesc}
\end{classdesc}
\setindexsubitem
{
(in module UserList)
}
\begin{memberdesc}
{
data
}
A real dictionary used to store the contents of the
\class
{
UserDict
}
class.
\end{memberdesc}
\section
{
Standard Module
\module
{
UserList
}}
\stmodindex
{
UserList
}
\label
{
module-UserList
}
This module defines a class that acts as a wrapper around
list objects. It is a useful base class for
your own list-like classes, which can inherit from
them and override existing methods or add new ones. In this way one
can add new behaviours to lists.
The
\module
{
UserList
}
module defines the
\class
{
UserList
}
class:
The
\module
{
UserList
}
module defines the
\class
{
UserList
}
class:
\begin{classdesc}
{
UserList
}{
\optional
{
list
}}
\begin{classdesc}
{
UserList
}{
\optional
{
list
}}
...
@@ -31,3 +42,8 @@ contents are initially set to a copy of \var{list}, defaulting to the
...
@@ -31,3 +42,8 @@ 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,
empty list
\code
{
[]
}
.
\var
{
list
}
can be either a regular Python list,
or an instance of
\class
{
UserList
}
(or a subclass).
or an instance of
\class
{
UserList
}
(or a subclass).
\end{classdesc}
\end{classdesc}
\begin{memberdesc}
{
data
}
A real Python list object used to store the contents of the
\class
{
UserList
}
class.
\end{memberdesc}
Doc/libuserdict.tex
Dosyayı görüntüle @
1ce3604c
\section
{
Standard Modules
\module
{
UserDict
}
and
\module
{
UserList
}}
\section
{
Standard Module
\module
{
UserDict
}}
\nodename
{
UserDict and UserList
}
\stmodindex
{
UserDict
}
\stmodindex
{
UserDict
}
\stmodindex
{
UserList
}
\label
{
module-UserDict
}
\label
{
module-UserDict
}
\label
{
module-UserList
}
Each of these modules
defines a class that acts as a wrapper around
This module
defines a class that acts as a wrapper around
either dictionary or list objects. They're useful base classe
s for
dictionary objects. It is a useful base clas
s for
your own dictionary-like
or list-like
classes, which can inherit from
your own dictionary-like classes, which can inherit from
them and override existing methods or add new ones. In this way one
them and override existing methods or add new ones. In this way one
can add new behaviours to dictionaries
or lists
.
can add new behaviours to dictionaries.
\setindexsubitem
{
(in module UserDict)
}
The
\module
{
UserDict
}
module defines the
\class
{
UserDict
}
class:
The
\module
{
UserDict
}
module defines the
\class
{
UserDict
}
class:
\begin{classdesc}
{
UserDict
}{}
\begin{classdesc}
{
UserDict
}{}
...
@@ -20,7 +16,22 @@ contents are kept in a regular dictionary, which is accessible via the
...
@@ -20,7 +16,22 @@ contents are kept in a regular dictionary, which is accessible via the
\member
{
data
}
attribute of
\class
{
UserDict
}
instances.
\member
{
data
}
attribute of
\class
{
UserDict
}
instances.
\end{classdesc}
\end{classdesc}
\setindexsubitem
{
(in module UserList)
}
\begin{memberdesc}
{
data
}
A real dictionary used to store the contents of the
\class
{
UserDict
}
class.
\end{memberdesc}
\section
{
Standard Module
\module
{
UserList
}}
\stmodindex
{
UserList
}
\label
{
module-UserList
}
This module defines a class that acts as a wrapper around
list objects. It is a useful base class for
your own list-like classes, which can inherit from
them and override existing methods or add new ones. In this way one
can add new behaviours to lists.
The
\module
{
UserList
}
module defines the
\class
{
UserList
}
class:
The
\module
{
UserList
}
module defines the
\class
{
UserList
}
class:
\begin{classdesc}
{
UserList
}{
\optional
{
list
}}
\begin{classdesc}
{
UserList
}{
\optional
{
list
}}
...
@@ -31,3 +42,8 @@ contents are initially set to a copy of \var{list}, defaulting to the
...
@@ -31,3 +42,8 @@ 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,
empty list
\code
{
[]
}
.
\var
{
list
}
can be either a regular Python list,
or an instance of
\class
{
UserList
}
(or a subclass).
or an instance of
\class
{
UserList
}
(or a subclass).
\end{classdesc}
\end{classdesc}
\begin{memberdesc}
{
data
}
A real Python list object used to store the contents of the
\class
{
UserList
}
class.
\end{memberdesc}
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