[Python-checkins]
python/dist/src/Doc/whatsnew whatsnew24.tex, 1.35, 1.36
rhettinger at users.sourceforge.net
rhettinger at users.sourceforge.net
Thu Mar 4 03:25:46 EST 2004
Update of /cvsroot/python/python/dist/src/Doc/whatsnew
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14562/Doc/whatsnew
Modified Files:
whatsnew24.tex
Log Message:
SF #904720: dict.update should take a 2-tuple sequence like dict.__init_
(Championed by Bob Ippolito.)
The update() method for mappings now accepts all the same argument forms
as the dict() constructor. This includes item lists and/or keyword
arguments.
Index: whatsnew24.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/whatsnew/whatsnew24.tex,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -d -r1.35 -r1.36
*** whatsnew24.tex 17 Feb 2004 10:46:32 -0000 1.35
--- whatsnew24.tex 4 Mar 2004 08:25:44 -0000 1.36
***************
*** 135,138 ****
--- 135,142 ----
\begin{itemize}
+ \item The \method{dict.update()} method now accepts the same
+ argument forms as the \class{dict} constructor. This includes any
+ mapping, any iterable of key/value pairs, and/or keyword arguments.
+
\item The string methods, \method{ljust()}, \method{rjust()}, and
\method{center()} now take an optional argument for specifying a
More information about the Python-checkins
mailing list