]> granicus.if.org Git - python/commitdiff
Typo fix; add clarifying word
authorAndrew M. Kuchling <amk@amk.ca>
Fri, 19 May 2006 00:03:55 +0000 (00:03 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Fri, 19 May 2006 00:03:55 +0000 (00:03 +0000)
Doc/whatsnew/whatsnew20.tex

index 7cd03951855577abf41ecd041ee18bc8e98ea5c5..56d15b85fb05df02fd844e72baf26743dfa5af6e 100644 (file)
@@ -330,7 +330,7 @@ List comprehensions have the form:
 [ expression for expr in sequence1 
              for expr2 in sequence2 ...
             for exprN in sequenceN
-             if condition
+             if condition ]
 \end{verbatim}
 
 The \keyword{for}...\keyword{in} clauses contain the sequences to be
@@ -356,7 +356,7 @@ for expr1 in sequence1:
                   # resulting list.
 \end{verbatim}
 
-This means that when there are \keyword{for}...\keyword{in} clauses,
+This means that when there are multiple \keyword{for}...\keyword{in} clauses,
 the resulting list will be equal to the product of the lengths of all
 the sequences.  If you have two lists of length 3, the output list is
 9 elements long: