uranusjr commented on issue #24021:
URL: https://github.com/apache/airflow/issues/24021#issuecomment-1143375651

   I think we should do all of the above (except the alternative API thing, 
which I have deleted from the post), in the order they were mentioned.
   
   As of native zip in taskflow, I think simply having `zip` is enough:
   
   ```python
   @task
   def up_1():
       return ["a", "b"]
   
   @task
   def up_2():
       return ["x", "y"]
   
   @task
   def output(v):
       first, second = v
       print(first, second)
       # This should print:
       # a, b
       # x, y
   
   output.expand(v=up_1().zip(up_2()))
   ```
   
   This feels very close to normal Python code to me.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to