[Python-checkins] CVS: python/dist/src/Doc/lib libstdtypes.tex,1.44,1.45
Guido van Rossum
python-dev@python.org
Tue, 12 Dec 2000 14:03:50 -0800
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory slayer.i.sourceforge.net:/tmp/cvs-serv10793
Modified Files:
libstdtypes.tex
Log Message:
"Documentation" for {}.popitem().
Index: libstdtypes.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libstdtypes.tex,v
retrieving revision 1.44
retrieving revision 1.45
diff -C2 -r1.44 -r1.45
*** libstdtypes.tex 2000/11/30 19:30:20 1.44
--- libstdtypes.tex 2000/12/12 22:03:47 1.45
***************
*** 818,821 ****
--- 818,824 ----
else \var{x} (also setting it)}
{(5)}
+ \lineiii{\var{a}.popitem()}
+ {remove and return an arbitrary (\var{key}, \var{value}) pair}
+ {(6)}
\end{tableiii}
***************
*** 842,845 ****
--- 845,851 ----
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
+ over a dictionary, as often used in set algorithms.
\end{description}