
Update of /cvsroot/python/python/dist/src/Doc/tut In directory sc8-pr-cvs1:/tmp/cvs-serv21903/tut Modified Files: tut.tex Log Message: Nits from a review of the documentation update. Index: tut.tex =================================================================== RCS file: /cvsroot/python/python/dist/src/Doc/tut/tut.tex,v retrieving revision 1.211 retrieving revision 1.212 diff -C2 -d -r1.211 -r1.212 *** tut.tex 18 Nov 2003 17:50:34 -0000 1.211 --- tut.tex 26 Nov 2003 17:52:45 -0000 1.212 *************** *** 2162,2170 **** When looping through dictionaries, the key and corresponding value can ! be retrieved at the same time using the \method{items()} method. \begin{verbatim}
knights = {'gallahad': 'the pure', 'robin': 'the brave'} ! >>> for k, v in knights.items(): ... print k, v ... --- 2162,2170 ----
When looping through dictionaries, the key and corresponding value can ! be retrieved at the same time using the \method{iteritems()} method. \begin{verbatim}
knights = {'gallahad': 'the pure', 'robin': 'the brave'} ! >>> for k, v in knights.iteritems(): ... print k, v ...
*** 3958,3962 **** \section{Random Remarks \label{remarks}} ! [These should perhaps be placed more carefully...] --- 3958,3962 ---- \section{Random Remarks \label{remarks}} ! % [These should perhaps be placed more carefully...]
participants (1)
-
rhettingerīŧ users.sourceforge.net