From: Martin v. Löwis Date: Thu, 6 May 2004 01:35:45 +0000 (+0000) Subject: Patch #940026: Explain "in" when it is first used. X-Git-Tag: v2.4a1~445 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f1f056083247ce28973e8f1e589b89f57fa410b6;p=python Patch #940026: Explain "in" when it is first used. Backported to 2.3. --- diff --git a/Doc/tut/tut.tex b/Doc/tut/tut.tex index d214e7f5b7..87bc424f67 100644 --- a/Doc/tut/tut.tex +++ b/Doc/tut/tut.tex @@ -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