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
7f3b0421
Kaydet (Commit)
7f3b0421
authored
Mar 27, 1997
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added docs for UserDict,UserList
üst
b6a80262
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
64 additions
and
1 deletion
+64
-1
Makefile
Doc/Makefile
+2
-1
lib.tex
Doc/lib.tex
+1
-0
lib.tex
Doc/lib/lib.tex
+1
-0
libpython.tex
Doc/lib/libpython.tex
+3
-0
libuserdict.tex
Doc/lib/libuserdict.tex
+27
-0
libpython.tex
Doc/libpython.tex
+3
-0
libuserdict.tex
Doc/libuserdict.tex
+27
-0
No files found.
Doc/Makefile
Dosyayı görüntüle @
7f3b0421
...
@@ -113,7 +113,8 @@ LIBFILES = lib.tex \
...
@@ -113,7 +113,8 @@ LIBFILES = lib.tex \
libxdrlib.tex libimghdr.tex
\
libxdrlib.tex libimghdr.tex
\
librestricted.tex librexec.tex libbastion.tex
\
librestricted.tex librexec.tex libbastion.tex
\
libformatter.tex liboperator.tex libsoundex.tex libresource.tex
\
libformatter.tex liboperator.tex libsoundex.tex libresource.tex
\
libstat.tex libstrio.tex libundoc.tex libmailcap.tex libglob.tex
libstat.tex libstrio.tex libundoc.tex libmailcap.tex libglob.tex
\
libuser.tex
# Library document
# Library document
lib.dvi
:
$(LIBFILES)
lib.dvi
:
$(LIBFILES)
...
...
Doc/lib.tex
Dosyayı görüntüle @
7f3b0421
...
@@ -77,6 +77,7 @@ to Python and how to embed it in other applications.
...
@@ -77,6 +77,7 @@ to Python and how to embed it in other applications.
\input
{
libpython
}
% Python Services
\input
{
libpython
}
% Python Services
\input
{
libsys
}
\input
{
libsys
}
\input
{
libtypes2
}
% types is already taken :-(
\input
{
libtypes2
}
% types is already taken :-(
\input
{
libuser
}
\input
{
liboperator
}
\input
{
liboperator
}
\input
{
libtraceback
}
\input
{
libtraceback
}
\input
{
libpickle
}
\input
{
libpickle
}
...
...
Doc/lib/lib.tex
Dosyayı görüntüle @
7f3b0421
...
@@ -77,6 +77,7 @@ to Python and how to embed it in other applications.
...
@@ -77,6 +77,7 @@ to Python and how to embed it in other applications.
\input
{
libpython
}
% Python Services
\input
{
libpython
}
% Python Services
\input
{
libsys
}
\input
{
libsys
}
\input
{
libtypes2
}
% types is already taken :-(
\input
{
libtypes2
}
% types is already taken :-(
\input
{
libuser
}
\input
{
liboperator
}
\input
{
liboperator
}
\input
{
libtraceback
}
\input
{
libtraceback
}
\input
{
libpickle
}
\input
{
libpickle
}
...
...
Doc/lib/libpython.tex
Dosyayı görüntüle @
7f3b0421
...
@@ -12,6 +12,9 @@ environment. Here's an overview:
...
@@ -12,6 +12,9 @@ environment. Here's an overview:
\item
[types]
\item
[types]
--- Names for all built-in types.
--- Names for all built-in types.
\item
[UserDict, UserList]
--- Class wrappers for dictionary and list objects.
\item
[traceback]
\item
[traceback]
--- Print or retrieve a stack traceback.
--- Print or retrieve a stack traceback.
...
...
Doc/lib/libuserdict.tex
0 → 100644
Dosyayı görüntüle @
7f3b0421
\section
{
Standard Modules
\sectcode
{
UserDict
}
and
\sectcode
{
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
them and override existing methods or add new ones. In this way one
can add new behaviours to dictionaries or lists.
\renewcommand
{
\indexsubitem
}{
(in module UserDict)
}
The
\code
{
UserDict
}
module defines the
\code
{
UserDict
}
class:
\begin{funcdesc}
{
UserDict
}{}
Return a class instance that simulates a dictionary. The instance's
contents are kept in a regular dictionary, which is accessible via the
\code
{
data
}
attribute of
\code
{
UserDict
}
instances.
\end{funcdesc}
\renewcommand
{
\indexsubitem
}{
(in module UserList)
}
The
\code
{
UserList
}
module defines the
\code
{
UserList
}
class:
\begin{funcdesc}
{
UserList
}{
\optional
{
list
}}
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
empty list
\code
{
[]
}
.
\var
{
list
}
can be either a regular Python list,
or an instance of
\code
{
UserList
}
(or a subclass).
\end{funcdesc}
Doc/libpython.tex
Dosyayı görüntüle @
7f3b0421
...
@@ -12,6 +12,9 @@ environment. Here's an overview:
...
@@ -12,6 +12,9 @@ environment. Here's an overview:
\item
[types]
\item
[types]
--- Names for all built-in types.
--- Names for all built-in types.
\item
[UserDict, UserList]
--- Class wrappers for dictionary and list objects.
\item
[traceback]
\item
[traceback]
--- Print or retrieve a stack traceback.
--- Print or retrieve a stack traceback.
...
...
Doc/libuserdict.tex
0 → 100644
Dosyayı görüntüle @
7f3b0421
\section
{
Standard Modules
\sectcode
{
UserDict
}
and
\sectcode
{
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
them and override existing methods or add new ones. In this way one
can add new behaviours to dictionaries or lists.
\renewcommand
{
\indexsubitem
}{
(in module UserDict)
}
The
\code
{
UserDict
}
module defines the
\code
{
UserDict
}
class:
\begin{funcdesc}
{
UserDict
}{}
Return a class instance that simulates a dictionary. The instance's
contents are kept in a regular dictionary, which is accessible via the
\code
{
data
}
attribute of
\code
{
UserDict
}
instances.
\end{funcdesc}
\renewcommand
{
\indexsubitem
}{
(in module UserList)
}
The
\code
{
UserList
}
module defines the
\code
{
UserList
}
class:
\begin{funcdesc}
{
UserList
}{
\optional
{
list
}}
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
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