diff options
author | Raymond Hettinger <python@rcn.com> | 2003-11-26 17:52:45 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2003-11-26 17:52:45 (GMT) |
commit | d4462300db217c357108e9618190b2f92ae8522f (patch) | |
tree | f5e575e717f0011281953908583b8d43169cdb6d /Doc/tut/tut.tex | |
parent | 72452650af812d06796995a25e939e0534bfa0b8 (diff) | |
download | cpython-d4462300db217c357108e9618190b2f92ae8522f.zip cpython-d4462300db217c357108e9618190b2f92ae8522f.tar.gz cpython-d4462300db217c357108e9618190b2f92ae8522f.tar.bz2 |
Nits from a review of the documentation update.
Diffstat (limited to 'Doc/tut/tut.tex')
-rw-r--r-- | Doc/tut/tut.tex | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/tut/tut.tex b/Doc/tut/tut.tex index ce941f3..56dd395 100644 --- a/Doc/tut/tut.tex +++ b/Doc/tut/tut.tex @@ -2161,11 +2161,11 @@ pattern, list comprehensions can compactly specify the key-value list. \section{Looping Techniques \label{loopidioms}} When looping through dictionaries, the key and corresponding value can -be retrieved at the same time using the \method{items()} method. +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.items(): +>>> for k, v in knights.iteritems(): ... print k, v ... gallahad the pure @@ -3957,7 +3957,7 @@ list, and the function object is called with this new argument list. \section{Random Remarks \label{remarks}} -[These should perhaps be placed more carefully...] +% [These should perhaps be placed more carefully...] Data attributes override method attributes with the same name; to |