summaryrefslogtreecommitdiffstats
path: root/Doc/tut/tut.tex
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2004-05-06 01:35:45 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2004-05-06 01:35:45 (GMT)
commitf1f056083247ce28973e8f1e589b89f57fa410b6 (patch)
tree9d17d040368d0159e920fa9d7e16e5298f309cf3 /Doc/tut/tut.tex
parent99872c1342389c4180937b7683d93679462da3d0 (diff)
downloadcpython-f1f056083247ce28973e8f1e589b89f57fa410b6.zip
cpython-f1f056083247ce28973e8f1e589b89f57fa410b6.tar.gz
cpython-f1f056083247ce28973e8f1e589b89f57fa410b6.tar.bz2
Patch #940026: Explain "in" when it is first used.
Backported to 2.3.
Diffstat (limited to 'Doc/tut/tut.tex')
-rw-r--r--Doc/tut/tut.tex3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/tut/tut.tex b/Doc/tut/tut.tex
index d214e7f..87bc424 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