title: Python poll - attribute error
body: <p>I am trying to poll a process using <code>poll()</code> from python. <a href="http://docs.python.org/2/library/subprocess.html#subprocess.Popen.poll" rel="nofollow">link</a></p>
  
  <p>I don't understand, I am supplying an integral value for it to poll. for example: the value is <code>14870</code></p>
  
  <pre><code>14870
  Traceback (most recent call last):
    File "test.py", line 29, in &lt;module&gt;
      parse_file(input_csv[0])
    File "test.py", line 24, in parse_file
      ret = pid[r].poll()
  AttributeError: 'int' object has no attribute 'poll'
  </code></pre>
  
  <p>I failed to find anywhere in the documentation about what datatype it is..</p>