tests for generator to tuple assignment as well as generator comprehensions

This commit is contained in:
Dave Halter committed 2014-06-10 00:40:38 +02:00
1 parent af801ef9b4
commit 9cffbef608
2 files changed
+19

No files matched your search

+7
View File
@@ -177,6 +177,13 @@ left, right = (i for i in (1, ''))
#? int()
left
gen = (i for i in (1,))
#? int()
next(gen)
#?
gen[0]
# -----------------
# ternary operator
# -----------------