Kaydet (Commit) a1e214a1 authored tarafından Fred Drake's avatar Fred Drake

Thomas Wouters <thomas@xs4all.net>:

Update the grammar to reflect the most recent changes to list
comprehensions.
üst d066f6d7
......@@ -152,7 +152,8 @@ A list display is a possibly empty series of expressions enclosed in
square brackets:
\begin{verbatim}
list_display: "[" [expression_list [list_iter]] "]"
list_display: "[" [listmaker] "]"
listmaker: expression_list ( list_iter | ( "," expression)* [","] )
list_iter: list_for | list_if
list_for: "for" expression_list "in" testlist [list_iter]
list_if: "if" test [list_iter]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment