Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
fcda560e
Commit
fcda560e
authored
Jan 07, 1998
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a typo (the word "a" was spelled "c"!).
Added index entries & \label{} constructs.
parent
c9a32ab2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
Doc/lib/libuserdict.tex
Doc/lib/libuserdict.tex
+6
-1
Doc/libuserdict.tex
Doc/libuserdict.tex
+6
-1
No files found.
Doc/lib/libuserdict.tex
View file @
fcda560e
\section
{
Standard Modules
\sectcode
{
UserDict
}
and
\sectcode
{
UserList
}}
\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
Each of these modules defines a class that acts as a wrapper around
either dictionary or list objects. They're useful base classes for
either dictionary or list objects. They're useful base classes for
your own dictionary-like or list-like classes, which can inherit from
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
...
@@ -14,6 +18,7 @@ contents are kept in a regular dictionary, which is accessible via the
\code
{
data
}
attribute of
\code
{
UserDict
}
instances.
\code
{
data
}
attribute of
\code
{
UserDict
}
instances.
\end{funcdesc}
\end{funcdesc}
\stmodindex
{
UserList
}
\renewcommand
{
\indexsubitem
}{
(in module UserList)
}
\renewcommand
{
\indexsubitem
}{
(in module UserList)
}
The
\code
{
UserList
}
module defines the
\code
{
UserList
}
class:
The
\code
{
UserList
}
module defines the
\code
{
UserList
}
class:
...
@@ -21,7 +26,7 @@ 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
Return a class instance that simulates a list. The instance's
contents are kept in a regular list, which is accessible via the
contents are kept in a regular list, which is accessible via the
\code
{
data
}
attribute of
\code
{
UserList
}
instances. The instance's
\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,
empty list
\code
{
[]
}
.
\var
{
list
}
can be either a regular Python list,
or an instance of
\code
{
UserList
}
(or a subclass).
or an instance of
\code
{
UserList
}
(or a subclass).
\end{funcdesc}
\end{funcdesc}
Doc/libuserdict.tex
View file @
fcda560e
\section
{
Standard Modules
\sectcode
{
UserDict
}
and
\sectcode
{
UserList
}}
\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
Each of these modules defines a class that acts as a wrapper around
either dictionary or list objects. They're useful base classes for
either dictionary or list objects. They're useful base classes for
your own dictionary-like or list-like classes, which can inherit from
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
...
@@ -14,6 +18,7 @@ contents are kept in a regular dictionary, which is accessible via the
\code
{
data
}
attribute of
\code
{
UserDict
}
instances.
\code
{
data
}
attribute of
\code
{
UserDict
}
instances.
\end{funcdesc}
\end{funcdesc}
\stmodindex
{
UserList
}
\renewcommand
{
\indexsubitem
}{
(in module UserList)
}
\renewcommand
{
\indexsubitem
}{
(in module UserList)
}
The
\code
{
UserList
}
module defines the
\code
{
UserList
}
class:
The
\code
{
UserList
}
module defines the
\code
{
UserList
}
class:
...
@@ -21,7 +26,7 @@ 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
Return a class instance that simulates a list. The instance's
contents are kept in a regular list, which is accessible via the
contents are kept in a regular list, which is accessible via the
\code
{
data
}
attribute of
\code
{
UserList
}
instances. The instance's
\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,
empty list
\code
{
[]
}
.
\var
{
list
}
can be either a regular Python list,
or an instance of
\code
{
UserList
}
(or a subclass).
or an instance of
\code
{
UserList
}
(or a subclass).
\end{funcdesc}
\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