summaryrefslogtreecommitdiffstats
path: root/Doc/ref/ref7.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/ref/ref7.tex')
-rw-r--r--Doc/ref/ref7.tex6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/ref/ref7.tex b/Doc/ref/ref7.tex
index c88d983..64d3621 100644
--- a/Doc/ref/ref7.tex
+++ b/Doc/ref/ref7.tex
@@ -60,6 +60,7 @@ statement, thus there are no ambiguities (the `dangling
The formatting of the grammar rules in the following sections places
each clause on a separate line for clarity.
+
\section{The \keyword{if} statement\label{if}}
\stindex{if}
@@ -80,6 +81,7 @@ present, is executed.
\kwindex{elif}
\kwindex{else}
+
\section{The \keyword{while} statement\label{while}}
\stindex{while}
\indexii{loop}{statement}
@@ -105,6 +107,7 @@ of the suite and goes back to testing the expression.
\stindex{break}
\stindex{continue}
+
\section{The \keyword{for} statement\label{for}}
\stindex{for}
\indexii{loop}{statement}
@@ -169,6 +172,7 @@ for x in a[:]:
if x < 0: a.remove(x)
\end{verbatim}
+
\section{The \keyword{try} statement\label{try}}
\stindex{try}
@@ -278,6 +282,7 @@ restriction may be lifted in the future).
\stindex{break}
\stindex{continue}
+
\section{Function definitions\label{function}}
\indexii{function}{definition}
@@ -368,6 +373,7 @@ passed around. The semantics of name resolution in the nested
function will change in Python 2.2. See the appendix for a
description of the new semantics.
+
\section{Class definitions\label{class}}
\indexii{class}{definition}