title: using python concurrent.futures submit with processes numbering
body: <p>I am trying to iterate over a multiprocess query to website using python 3.  I used a modified version of the example code from <a href="https://docs.python.org/3/library/concurrent.futures.html" rel="nofollow noreferrer">https://docs.python.org/3/library/concurrent.futures.html</a> example 17.4.2.1. ThreadPoolExecutor Example</p>
  
  <pre><code>    with concurrent.futures.ProcessPoolExecutor(max_workers=self.load) as executor:
          futureThreadVer = {executor.submit(self.get_code(), 60):x for x in range(self.load)}
          for future in concurrent.futures.as_completed(futureThreadVer):
              threadVer = futureThreadVer[future]
              try:
                  data=future.result()
              except Exception as exc:
                  print("%r generated an exception : %s" %(threadVer, exc))
              else:
                  print("%r page data %r" % (self.page, data))
  </code></pre>
  
  <p>It is a modification of the example code from <a href="https://docs.python.org/3/library/concurrent.futures.html" rel="nofollow noreferrer">https://docs.python.org/3/library/concurrent.futures.html</a> example 17.4.2.1. ThreadPoolExecutor Example</p>
  
  <p>Instead of mapping to thread to url, I want to have a process number attached because I am querying the same the url in different processes.</p>
  
  <p>I get the following error:</p>
  
  <pre><code>3 generated an exception : 'int' object is not callable
  1 generated an exception : 'int' object is not callable
  0 generated an exception : 'int' object is not callable
  2 generated an exception : 'int' object is not callable
  4 generated an exception : 'int' object is not callable
  </code></pre>