diff options
| author | Benjamin Peterson <benjamin@python.org> | 2012-01-14 08:58:23 -0500 |
|---|---|---|
| committer | Benjamin Peterson <benjamin@python.org> | 2012-01-14 08:58:23 -0500 |
| commit | 37fe2bd5e9be127591b1e39efe50fc0c3348b5ab (patch) | |
| tree | a6a2ba3887515ebb84accb6844eee6db1d661be3 /Parser | |
| parent | 111b4f56ca0c8da36d313a0563674c2f82e68d3e (diff) | |
| download | cpython-37fe2bd5e9be127591b1e39efe50fc0c3348b5ab.tar.gz | |
make YieldFrom its own distinct from Yield (closes #13780)
Diffstat (limited to 'Parser')
| -rw-r--r-- | Parser/Python.asdl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Parser/Python.asdl b/Parser/Python.asdl index 8ae4e5992f..876c175a5a 100644 --- a/Parser/Python.asdl +++ b/Parser/Python.asdl @@ -59,7 +59,8 @@ module Python | 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) |
