andriisoldatenko commented on issue #5298: [WIP][AIRFLOW-4534] Remove redundant list around dict comprehensions URL: https://github.com/apache/airflow/pull/5298#issuecomment-496472280 @BasPH yes, it's known behaviour for any mutable collections: ``` In [1]: d = {'a': 1, 'b': 2} In [2]: for k,v in d.items(): ...: d['x'] = 1 ...: --------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) <ipython-input-2-cdc4495c7b4d> in <module> ----> 1 for k,v in d.items(): 2 d['x'] = 1 3 RuntimeError: dictionary changed size during iteration ```
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
