mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Add definitions of the test and testlist symbols in the grammar so
there are no gaps in the definitions. Closes SF bug #726150.
This commit is contained in:
parent
f8ecde5de0
commit
25b5358cf2
1 changed files with 5 additions and 0 deletions
|
|
@ -153,6 +153,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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue