test for yields in expressions.

This commit is contained in:
Dave Halter
2017-09-01 18:08:52 +02:00
parent 16f1eb417a
commit e2d53f51b0

View File

@@ -179,6 +179,16 @@ gen().send()
#?
gen()()
# -----------------
# yield in expression
# -----------------
def x():
a= [(yield 1)]
#? int()
next(x())
# -----------------
# yield from
# -----------------