summaryrefslogtreecommitdiffstats
path: root/Parser
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2012-01-14 13:58:23 (GMT)
committerBenjamin Peterson <benjamin@python.org>2012-01-14 13:58:23 (GMT)
commit527c62292675ce6f0528593915900f2d025b0259 (patch)
tree010c85e5dc0b555d1342040b04fadededc3b3984 /Parser
parent91f252b179c4d399f735fedf72e53148e0b057fc (diff)
downloadcpython-527c62292675ce6f0528593915900f2d025b0259.zip
cpython-527c62292675ce6f0528593915900f2d025b0259.tar.gz
cpython-527c62292675ce6f0528593915900f2d025b0259.tar.bz2
make YieldFrom its own distinct from Yield (closes #13780)
Diffstat (limited to 'Parser')
-rw-r--r--Parser/Python.asdl3
1 files changed, 2 insertions, 1 deletions
diff --git a/Parser/Python.asdl b/Parser/Python.asdl
index 8ae4e59..876c175 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)