Issue #16546: make ast.YieldFrom argument mandatory.

This commit is contained in:
Mark Dickinson 2012-11-25 14:36:26 +00:00
parent 9982c53c2f
commit ded35aeb9d
7 changed files with 36 additions and 24 deletions

View file

@ -60,7 +60,7 @@ module Python
| GeneratorExp(expr elt, comprehension* generators)
-- the grammar constrains where yield expressions can occur
| Yield(expr? value)
| YieldFrom(expr? value)
| YieldFrom(expr value)
-- need sequences for compare to distinguish between
-- x < 4 < 3 and (x < 4) < 3
| Compare(expr left, cmpop* ops, expr* comparators)