summaryrefslogtreecommitdiffstats
path: root/Doc/lib
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-10-29 22:25:45 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-10-29 22:25:45 (GMT)
commita427a2b8d09a756119d424efac85159a0270b503 (patch)
treef94a983fe68890ca1b91d7dedefaebcd81284597 /Doc/lib
parent7ad2d1eb8eaf8db634b440ef3c4f5a1b9b654cb5 (diff)
downloadcpython-a427a2b8d09a756119d424efac85159a0270b503.zip
cpython-a427a2b8d09a756119d424efac85159a0270b503.tar.gz
cpython-a427a2b8d09a756119d424efac85159a0270b503.tar.bz2
Rename "dictionary" (type and constructor) to "dict".
Diffstat (limited to 'Doc/lib')
-rw-r--r--Doc/lib/libfuncs.tex14
1 files changed, 7 insertions, 7 deletions
diff --git a/Doc/lib/libfuncs.tex b/Doc/lib/libfuncs.tex
index 222a061..1ea8c10 100644
--- a/Doc/lib/libfuncs.tex
+++ b/Doc/lib/libfuncs.tex
@@ -175,7 +175,7 @@ def my_import(name):
\code{del \var{x}.\var{foobar}}.
\end{funcdesc}
-\begin{funcdesc}{dictionary}{\optional{mapping-or-sequence}}
+\begin{funcdesc}{dict}{\optional{mapping-or-sequence}}
Return a new dictionary initialized from the optional argument.
If an argument is not specified, return a new empty dictionary.
If the argument is a mapping object, return a dictionary mapping the
@@ -191,12 +191,12 @@ def my_import(name):
\code{\{1: 2, 2: 3\}}:
\begin{itemize}
- \item \code{dictionary(\{1: 2, 2: 3\})}
- \item \code{dictionary(\{1: 2, 2: 3\}.items())}
- \item \code{dictionary(\{1: 2, 2: 3\}.iteritems())}
- \item \code{dictionary(zip((1, 2), (2, 3)))}
- \item \code{dictionary([[2, 3], [1, 2]])}
- \item \code{dictionary([(i-1, i) for i in (2, 3)])}
+ \item \code{dict(\{1: 2, 2: 3\})}
+ \item \code{dict(\{1: 2, 2: 3\}.items())}
+ \item \code{dict(\{1: 2, 2: 3\}.iteritems())}
+ \item \code{dict(zip((1, 2), (2, 3)))}
+ \item \code{dict([[2, 3], [1, 2]])}
+ \item \code{dict([(i-1, i) for i in (2, 3)])}
\end{itemize}
\end{funcdesc}