We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02e9602 commit f026fb2Copy full SHA for f026fb2
1 file changed
book/book.tex
@@ -11839,13 +11839,13 @@ \section{Databases}
11839
Photo of John Cleese doing a silly walk.
11840
\end{verbatim}
11841
%
11842
-Many dictionary methods, like {\tt keys} and {\tt items}, also
11843
-work with database objects. So does iteration with a {\tt for}
11844
-statement.
+Some dictionary methods, like {\tt keys}, also
+work with database objects, so you can iterate through the database
+like this:
11845
\index{dictionary methods!anydbm module}
11846
11847
\begin{verbatim}
11848
-for key in db:
+for key in db.keys():
11849
print key
11850
11851
0 commit comments