MatrixManAtYrService commented on issue #23020:
URL: https://github.com/apache/airflow/issues/23020#issuecomment-1100149376

   re: `zip`, I was thinking that this would make that easier.  If you want to 
zip together two lists of length _n_ then you can just use a dict comprehension 
that gives each item one of _n_ keys--items with the same key get zipped 
together.  I guess it wouldn't really extend to stuff like `accumulate` though.
   
   I didn't include user-defined functions in my proposal because I was worried 
that:
   - If something goes wrong in that function, how do you communicate to them 
which one had the problem?
   - User has to wonder what airflow will do if they return the same key 
twice--with dicts the collision is handled when the user is building the object.
   - Other scary runtime concerns?
   
   It's good to know that maybe my third concern isn't so scary after all.
   


-- 
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