lmco / streamflow

StreamFlow™ is a stream processing tool designed to help build and monitor processing workflows.
https://github.com/lmco/streamflow/wiki
Apache License 2.0
253 stars 69 forks source link

Can I turn a generator object into a tuple without using `tuple()` #50

Open Montana opened 1 year ago

Montana commented 1 year ago

It's possible to use the following code to create a list:

[i+1 for i in(0,1,2)]
[1, 2, 3]

Can a similar thing be done with tuples in Streamflow?

(i+1 for i in(0,1,2)),
(<generator object <genexpr> at 0x03A53CF0>,)

Thanks Lockheed, Montana Mendy