1

This line is found in the python docs:

 future_to_url = {executor.submit(load_url, url, 60): url for url in URLS}

It seems to repeatedly call a function (submit) using arguments from a list (URLS)

What is the name for this syntax (idiom?).

Is future_to_url a list?

Ken
  • 4,367
  • 4
  • 28
  • 41

0 Answers0