]> granicus.if.org Git - python/commitdiff
Move grammar rule for lambda_form into section on lambdas. Fixes #964525.
authorMartin v. Löwis <martin@v.loewis.de>
Wed, 2 Jun 2004 12:54:33 +0000 (12:54 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Wed, 2 Jun 2004 12:54:33 +0000 (12:54 +0000)
Doc/ref/ref5.tex

index cb181d5975b8f372df34a8de14cabe36164d9a79..27127adc867cf5c63f4ece9437a3a26542303c3a 100644 (file)
@@ -967,8 +967,6 @@ Boolean operations have the lowest priority of all Python operations:
              {\token{not_test} | \token{and_test} "and" \token{not_test}}
   \production{not_test}
              {\token{comparison} | "not" \token{not_test}}
-  \production{lambda_form}
-             {"lambda" [\token{parameter_list}]: \token{expression}}
 \end{productionlist}
 
 In the context of Boolean operations, and also when expressions are
@@ -1006,6 +1004,11 @@ not \code{''}.)
 \indexii{lambda}{form}
 \indexii{anonymous}{function}
 
+\begin{productionlist}
+  \production{lambda_form}
+             {"lambda" [\token{parameter_list}]: \token{expression}}
+\end{productionlist}
+
 Lambda forms (lambda expressions) have the same syntactic position as
 expressions.  They are a shorthand to create anonymous functions; the
 expression \code{lambda \var{arguments}: \var{expression}}