mirror of
https://github.com/python/cpython.git
synced 2025-11-13 23:46:24 +00:00
Added some minor prose before the descriptions of the data attributes
to make it clear that these are instance attributes, not module data.
This commit is contained in:
parent
abc64b74c8
commit
6bf37debb9
1 changed files with 12 additions and 5 deletions
|
|
@ -1,10 +1,9 @@
|
||||||
\section{\module{UserDict} ---
|
\section{\module{UserDict} ---
|
||||||
Class wrapper for dictionary objects.}
|
Class wrapper for dictionary objects}
|
||||||
|
|
||||||
\declaremodule{standard}{UserDict}
|
\declaremodule{standard}{UserDict}
|
||||||
|
|
||||||
\modulesynopsis{Class wrapper for dictionary objects.}
|
\modulesynopsis{Class wrapper for dictionary objects.}
|
||||||
|
|
||||||
|
|
||||||
This module defines a class that acts as a wrapper around
|
This module defines a class that acts as a wrapper around
|
||||||
dictionary objects. It is a useful base class for
|
dictionary objects. It is a useful base class for
|
||||||
your own dictionary-like classes, which can inherit from
|
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.
|
\member{data} attribute of \class{UserDict} instances.
|
||||||
\end{classdesc}
|
\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}
|
\begin{memberdesc}{data}
|
||||||
A real dictionary used to store the contents of the \class{UserDict}
|
A real dictionary used to store the contents of the \class{UserDict}
|
||||||
class.
|
class.
|
||||||
|
|
@ -26,9 +29,9 @@ class.
|
||||||
|
|
||||||
|
|
||||||
\section{\module{UserList} ---
|
\section{\module{UserList} ---
|
||||||
Class wrapper for list objects.}
|
Class wrapper for list objects}
|
||||||
\declaremodule{standard}{UserList}
|
|
||||||
|
|
||||||
|
\declaremodule{standard}{UserList}
|
||||||
\modulesynopsis{Class wrapper for list objects.}
|
\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).
|
or an instance of \class{UserList} (or a subclass).
|
||||||
\end{classdesc}
|
\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}
|
\begin{memberdesc}{data}
|
||||||
A real Python list object used to store the contents of the
|
A real Python list object used to store the contents of the
|
||||||
\class{UserList} class.
|
\class{UserList} class.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue