title: python temporary files
body: <p>I have this code:</p>
  
  <pre><code>import tempfile
  def tmp_me():
      tmp = tempfile.NamedTemporaryFile()
      tmp1 = tempfile.NamedTemporaryFile()
      lst = [tmp.name, tmp1.name]
      return lst
  
  def exit_dialog():
      lst = tmp_me()
      print lst
      import filecmp
      eq = filecmp.cmp(lst[0],lst[1])
      print eq
  
  exit_dialog()
  </code></pre>
  
  <p>I need to compare this 2 tempfiles, but i've always getting an error like this:</p>
  
  <pre><code>WindowsError: [Error 2] : 'c:\\users\\Saul_Tigh\\appdata\\local\\temp\\tmpbkpmeq'
  </code></pre>