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
03180866
Commit
03180866
authored
Jun 25, 2005
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug [ 1166582 ] IterableUserDict not in docs
parent
2b93857b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
9 deletions
+15
-9
Doc/lib/libuserdict.tex
Doc/lib/libuserdict.tex
+15
-9
No files found.
Doc/lib/libuserdict.tex
View file @
03180866
...
...
@@ -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