list comprehensions should be able to serve as an input for dynamic params as well.
This commit is contained in:
1 parent
63868feb5d
commit
43e54b6173
3 files changed
+18
-4
No files matched your search
@@ -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,)]
|
||||
Reference in new issue
Block a user