summaryrefslogtreecommitdiffstats
path: root/Doc/tut/tut.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/tut/tut.tex')
-rw-r--r--Doc/tut/tut.tex6
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