]> granicus.if.org Git - python/commitdiff
Patch #940026: Explain "in" when it is first used.
authorMartin v. Löwis <martin@v.loewis.de>
Thu, 6 May 2004 01:35:45 +0000 (01:35 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Thu, 6 May 2004 01:35:45 +0000 (01:35 +0000)
Backported to 2.3.

Doc/tut/tut.tex

index d214e7f5b70d95f97d1197087fe56803250fc7f5..87bc424f672557b6fd11f89c16ffae08023e3e97 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