Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 721a350

Browse files
committed
Merged revisions 79553 via svnmerge from
svn+ssh://[email protected]/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. ........
1 parent 1f03f6e commit 721a350

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/reference/expressions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1061,7 +1061,7 @@ in s`` returns the negation of ``x in s``. All built-in sequences and set types
10611061
support this as well as dictionary, for which :keyword:`in` tests whether a the
10621062
dictionary has a given key. For container types such as list, tuple, set,
10631063
frozenset, dict, or collections.deque, the expression ``x in y`` is equivalent
1064-
to ``any(x is e or x == e for val e in y)``.
1064+
to ``any(x is e or x == e for e in y)``.
10651065

10661066
For the string and bytes types, ``x in y`` is true if and only if *x* is a
10671067
substring of *y*. An equivalent test is ``y.find(x) != -1``. Empty strings are

0 commit comments

Comments
 (0)