What is the difference between these two calls? How does the second example syntax works ? how valid is using colon : in second example ?
with concurrent.futures.Executor() as executor:
futures = {executor.submit(perform, task) for task in get_tasks()}
and
with concurrent.futures.Executor() as executor:
futures = {executor.submit(perform, task): task for task in get_tasks()}
Would you give me some more example regarding using colon in set comprehension ? regards