]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Patch #940026: Explain "in" when it is first used.
authorMartin v. Löwis <martin@v.loewis.de>
Thu, 6 May 2004 01:34:56 +0000 (01:34 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Thu, 6 May 2004 01:34:56 +0000 (01:34 +0000)
Doc/tut/tut.tex

index 50421f240c9b3387fcbb28bc26c49c2636d23b96..18417a5e419cc2f529261ecac0b6d873b053790e 100644 (file)
@@ -1428,6 +1428,9 @@ This function can be called either like this:
 \code{ask_ok('Do you really want to quit?')} or like this:
 \code{ask_ok('OK to overwrite the file?', 2)}.
 
+This example also introduces the \keyword{in} keyword. This tests
+whether or not a sequence contains a certain value.
+
 The default values are evaluated at the point of function definition
 in the \emph{defining} scope, so that