summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libuserdict.tex
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1999-06-29 18:13:37 (GMT)
committerFred Drake <fdrake@acm.org>1999-06-29 18:13:37 (GMT)
commit6bf37debb93391db411387e03468a65bc7a42748 (patch)
tree65d81184368236b2c0b1d87431d4684d8bee2d8c /Doc/lib/libuserdict.tex
parentabc64b74c896cd1656e77d882642a11fb4f104e6 (diff)
downloadcpython-6bf37debb93391db411387e03468a65bc7a42748.zip
cpython-6bf37debb93391db411387e03468a65bc7a42748.tar.gz
cpython-6bf37debb93391db411387e03468a65bc7a42748.tar.bz2
Added some minor prose before the descriptions of the data attributes
to make it clear that these are instance attributes, not module data.
Diffstat (limited to 'Doc/lib/libuserdict.tex')
-rw-r--r--Doc/lib/libuserdict.tex17
1 files changed, 12 insertions, 5 deletions
diff --git a/Doc/lib/libuserdict.tex b/Doc/lib/libuserdict.tex
index f37d4cc..ce86ad2 100644
--- a/Doc/lib/libuserdict.tex
+++ b/Doc/lib/libuserdict.tex
@@ -1,10 +1,9 @@
\section{\module{UserDict} ---
- Class wrapper for dictionary objects.}
-\declaremodule{standard}{UserDict}
+ Class wrapper for dictionary objects}
+\declaremodule{standard}{UserDict}
\modulesynopsis{Class wrapper for dictionary objects.}
-
This module defines a class that acts as a wrapper around
dictionary objects. It is a useful base class for
your own dictionary-like classes, which can inherit from
@@ -19,6 +18,10 @@ contents are kept in a regular dictionary, which is accessible via the
\member{data} attribute of \class{UserDict} instances.
\end{classdesc}
+In addition to supporting the methods and operations of mappings (see
+section \ref{typesmapping}), \class{UserDict} instances provide the
+following attribute:
+
\begin{memberdesc}{data}
A real dictionary used to store the contents of the \class{UserDict}
class.
@@ -26,9 +29,9 @@ class.
\section{\module{UserList} ---
- Class wrapper for list objects.}
-\declaremodule{standard}{UserList}
+ Class wrapper for list objects}
+\declaremodule{standard}{UserList}
\modulesynopsis{Class wrapper for list objects.}
@@ -49,6 +52,10 @@ empty list \code{[]}. \var{list} can be either a regular Python list,
or an instance of \class{UserList} (or a subclass).
\end{classdesc}
+In addition to supporting the methods and operations of mutable
+sequences (see section \ref{typesseq}), \class{UserList} instances
+provide the following attribute:
+
\begin{memberdesc}{data}
A real Python list object used to store the contents of the
\class{UserList} class.