]> granicus.if.org Git - python/commitdiff
Fix typo in definition of 'in' keyword.
authorStefan Krah <stefan@bytereef.org>
Thu, 1 Apr 2010 10:34:09 +0000 (10:34 +0000)
committerStefan Krah <stefan@bytereef.org>
Thu, 1 Apr 2010 10:34:09 +0000 (10:34 +0000)
Doc/reference/expressions.rst

index 863c3cec2851c4e36635c2c2eaab8cdb4547b7f4..bb25956dbc56bd5cc70a61d0e3b0ac4bbf826438 100644 (file)
@@ -1061,7 +1061,7 @@ in s`` returns the negation of ``x in s``.  All built-in sequences and set types
 support this as well as dictionary, for which :keyword:`in` tests whether a the
 dictionary has a given key. For container types such as list, tuple, set,
 frozenset, dict, or collections.deque, the expression ``x in y`` is equivalent
-to ``any(x is e or x == e for val e in y)``.
+to ``any(x is e or x == e for e in y)``.
 
 For the string and bytes types, ``x in y`` is true if and only if *x* is a
 substring of *y*.  An equivalent test is ``y.find(x) != -1``.  Empty strings are