]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add definitions of the test and testlist symbols in the grammar so
authorFred Drake <fdrake@acm.org>
Fri, 27 Jun 2003 17:13:17 +0000 (17:13 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 27 Jun 2003 17:13:17 +0000 (17:13 +0000)
there are no gaps in the definitions.
Closes SF bug #726150.

Doc/ref/ref5.tex

index f28163278dc723d3eb18e99b2b21066ab87eeed1..9efd1a78be103c0fcc47198569a4a38c97bda8b7 100644 (file)
@@ -169,6 +169,11 @@ A list display is a possibly empty series of expressions enclosed in
 square brackets:
 
 \begin{productionlist}
+  \production{test}
+             {\token{and_test} ( "or" \token{and_test} )*
+              | \token{lambda_form}}
+  \production{testlist}
+             {\token{test} ( "," \token{test} )* [ "," ]}
   \production{list_display}
              {"[" [\token{listmaker}] "]"}
   \production{listmaker}