[Python-checkins] r79553 - python/branches/py3k/Doc/reference/expressions.rst

stefan.krah python-checkins at python.org
Thu Apr 1 12:34:09 CEST 2010

Author: stefan.krah
Date: Thu Apr  1 12:34:09 2010
New Revision: 79553

Fix typo in definition of 'in' keyword.


Modified: python/branches/py3k/Doc/reference/expressions.rst
--- python/branches/py3k/Doc/reference/expressions.rst	(original)
+++ python/branches/py3k/Doc/reference/expressions.rst	Thu Apr  1 12:34:09 2010
@@ -1061,7 +1061,7 @@
 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

More information about the Python-checkins mailing list