[Python-checkins] CVS: python/dist/src/Doc/lib libfuncs.tex,1.93,1.94
Tim Peters
tim_one@users.sourceforge.net
Mon, 29 Oct 2001 14:25:46 -0800
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv28201/python/Doc/lib
Modified Files:
libfuncs.tex
Log Message:
Rename "dictionary" (type and constructor) to "dict".
Index: libfuncs.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libfuncs.tex,v
retrieving revision 1.93
retrieving revision 1.94
diff -C2 -d -r1.93 -r1.94
*** libfuncs.tex 2001/10/26 15:04:33 1.93
--- libfuncs.tex 2001/10/29 22:25:44 1.94
***************
*** 176,180 ****
\end{funcdesc}
! \begin{funcdesc}{dictionary}{\optional{mapping-or-sequence}}
Return a new dictionary initialized from the optional argument.
If an argument is not specified, return a new empty dictionary.
--- 176,180 ----
\end{funcdesc}
! \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.
***************
*** 192,201 ****
\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)])}
\end{itemize}
\end{funcdesc}
--- 192,201 ----
\begin{itemize}
! \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}