3 ms·
Is it common for python libraries these days to overload the >> operator for oddball things like C++ does? Not doing crap like that is one of the things that I
by wmil 4y ago
Is it common for python libraries these days to overload the >> operator for oddball things like C++ does?
Not doing crap like that is one of the things that I loved about Python...
- detaro 4y ago> Is it common for python libraries these days to overload the >> operator for oddball things like C++ does? no
- neuronexmachina 4y agoThe Numpy and Tensorflow libraries do a fair bit of operator overloading, but it's IMHO more sensible than this example.
- tgarv 4y agoAirflow uses it for task ordering within a DAG, but that's used in the parsing step that happens before/outside of any actual task execution so it's not really in the source code of tasks at least.
- Noumenon72 4y agoThe Airflow 2.0 TaskFlow API[1] doesn't use the bitshift operators any more -- if you pass the result of one task into another, the second task is automatically downstream of the first. So it all just looks like function calls, despite using XComArgs behind the scenes. 1. https://airflow.apache.org/docs/apache-airflow/stable/tutorial_taskflow_api.html https://airflow.apache.org/docs/apache-airflow/stable/tutori...
- shabble 4y agoif you liked that, you'll love Plumbum[1] :) [1] https://github.com/tomerfiliba/plumbum https://github.com/tomerfiliba/plumbum
- marginalia_nu 4y agoI'm waiting for Guido to rush in any moment going "Stop right there, criminal scum! Nobody breaks the law on my watch!"