xnuinside commented on a change in pull request #4191: [AIRFLOW-3350] Explain 
how to use Bitshift Composition with lists
URL: https://github.com/apache/incubator-airflow/pull/4191#discussion_r233762311
 
 

 ##########
 File path: docs/concepts.rst
 ##########
 @@ -240,6 +240,19 @@ We can put this all together to build a simple pipeline:
                 python_callable=lambda: print("GOODBYE!"))
         )
 
+Bitshift can also be used with lists. For example:
+
+.. code:: python
+
+    op1 >> [op2, op3]
+
+is equivalent to:
+
+.. code:: python
+
+    op1.set_downstream(op2)
 
 Review comment:
   There is difference: the way what you use you create illusion what there are 
no possible to upstream/downstream a list of task with methods and it’s more 
simple to use bitwise list when use function for each task - this is what you 
show on such example 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to