1
0
forked from VimPlug/jedi

fix issues with generator comprehensions used directly with a send() call or something similar

This commit is contained in:
Dave Halter
2014-06-10 00:56:51 +02:00
parent 9cffbef608
commit 081fa79d9b
2 changed files with 13 additions and 5 deletions

View File

@@ -184,6 +184,14 @@ next(gen)
#?
gen[0]
gen = (a for arr in [[1.0]] for a in arr)
#? float()
next(gen)
#? int()
(i for i in (1,)).send()
# -----------------
# ternary operator
# -----------------