Mercurial > cpython-lru_cache-weakref
diff Parser/Python.asdl @ 74391:e1177b9167ce
make YieldFrom its own distinct from Yield (closes #13780)
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Sat, 14 Jan 2012 08:58:23 -0500 |
| parents | d64ac9ab4cd0 |
| children | 62545104f9c0 |
line wrap: on
line diff
--- a/Parser/Python.asdl Sat Jan 14 21:08:15 2012 +0800 +++ b/Parser/Python.asdl Sat Jan 14 08:58:23 2012 -0500 @@ -59,7 +59,8 @@ | DictComp(expr key, expr value, comprehension* generators) | GeneratorExp(expr elt, comprehension* generators) -- the grammar constrains where yield expressions can occur - | Yield(int is_from, expr? value) + | Yield(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)
