list comprehensions should be able to serve as an input for dynamic params as well.

This commit is contained in:
Dave Halter
2014-06-11 21:54:18 +02:00
parent 63868feb5d
commit 43e54b6173
3 changed files with 18 additions and 4 deletions

View File

@@ -394,3 +394,13 @@ def third():
return list(b)
#?
third()[0]
# -----------------
# list comprehensions
# -----------------
def from_comprehension(foo):
#? float()
return foo
[from_comprehension(1.0) for n in (1,)]