[Python-checkins] python/dist/src/Doc/lib libstdtypes.tex, 1.161,
1.162
mwh at users.sourceforge.net
mwh at users.sourceforge.net
Sat Aug 7 18:41:38 CEST 2004
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17263
Modified Files:
libstdtypes.tex
Log Message:
Point out that the setdefault defaults the value to None. Inspired by
Michael Chermside's thinking about patch #748126 (the chief upshot of
which thinking was "reject it!").
Index: libstdtypes.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libstdtypes.tex,v
retrieving revision 1.161
retrieving revision 1.162
diff -C2 -d -r1.161 -r1.162
*** libstdtypes.tex 6 Aug 2004 18:55:09 -0000 1.161
--- libstdtypes.tex 7 Aug 2004 16:41:34 -0000 1.162
***************
*** 1369,1373 ****
\item[(5)] \function{setdefault()} is like \function{get()}, except
that if \var{k} is missing, \var{x} is both returned and inserted into
! the dictionary as the value of \var{k}.
\item[(6)] \function{popitem()} is useful to destructively iterate
--- 1369,1373 ----
\item[(5)] \function{setdefault()} is like \function{get()}, except
that if \var{k} is missing, \var{x} is both returned and inserted into
! the dictionary as the value of \var{k}. \var{x} defaults to \var{None}.
\item[(6)] \function{popitem()} is useful to destructively iterate
More information about the Python-checkins
mailing list