diff options
author | Stefan Krah <stefan@bytereef.org> | 2010-04-01 10:56:52 (GMT) |
---|---|---|
committer | Stefan Krah <stefan@bytereef.org> | 2010-04-01 10:56:52 (GMT) |
commit | 721a35001e620dce23c19cdfba6a64b38feec636 (patch) | |
tree | d5c4eb87b69725692d2e77de49fb491e59799576 /Doc | |
parent | 1f03f6e6911dc003f75b049ea0bf6dd390a2cc7f (diff) | |
download | cpython-721a35001e620dce23c19cdfba6a64b38feec636.zip cpython-721a35001e620dce23c19cdfba6a64b38feec636.tar.gz cpython-721a35001e620dce23c19cdfba6a64b38feec636.tar.bz2 |
Merged revisions 79553 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r79553 | stefan.krah | 2010-04-01 12:34:09 +0200 (Thu, 01 Apr 2010) | 1 line
Fix typo in definition of 'in' keyword.
........
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/reference/expressions.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst index d074ebb..f0bf841 100644 --- a/Doc/reference/expressions.rst +++ b/Doc/reference/expressions.rst @@ -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 |