Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8d21243

Browse files
committed
Added description of optional parameter to UserDict constructor.
Omission reported by Barry Warsaw.
1 parent 7dcc69a commit 8d21243

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

Doc/lib/libuserdict.tex

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,13 @@ \section{\module{UserDict} ---
1212

1313
The \module{UserDict} module defines the \class{UserDict} class:
1414

15-
\begin{classdesc}{UserDict}{}
15+
\begin{classdesc}{UserDict}{\optional{intialdata}}
1616
Return a class instance that simulates a dictionary. The instance's
1717
contents are kept in a regular dictionary, which is accessible via the
18-
\member{data} attribute of \class{UserDict} instances.
18+
\member{data} attribute of \class{UserDict} instances. If
19+
\var{initialdata} is provided, \member{data} is initialized with its
20+
contents; note that a reference to \var{initialdata} will not be kept,
21+
allowing it be used used for other purposes.
1922
\end{classdesc}
2023

2124
In addition to supporting the methods and operations of mappings (see

0 commit comments

Comments
 (0)