mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-18 14:51:26 +08:00
test for yields in expressions.
This commit is contained in:
1 parent
16f1eb417a
commit
e2d53f51b0
1 file changed
+10
@@ -179,6 +179,16 @@ gen().send()
|
|||||||
#?
|
#?
|
||||||
gen()()
|
gen()()
|
||||||
|
|
||||||
|
# -----------------
|
||||||
|
# yield in expression
|
||||||
|
# -----------------
|
||||||
|
|
||||||
|
def x():
|
||||||
|
a= [(yield 1)]
|
||||||
|
|
||||||
|
#? int()
|
||||||
|
next(x())
|
||||||
|
|
||||||
# -----------------
|
# -----------------
|
||||||
# yield from
|
# yield from
|
||||||
# -----------------
|
# -----------------
|
||||||
|
|||||||
Reference in new issue
Block a user