title: TypeError: invalid file: When trying to make a file name a variable
body: <p>Hi I am trying to represent a file location as a variable because the finial script will be run on another machine. This is the code I have tried followed by the error I get. It seems to me that some how python is adding "\" and that is causing the problem. If that is the case how do I get it not to insert the "\"? Thank you</p>
  
  <pre><code>F = 'C:\Documents and Settings\myfile.txt','r'
  f = open(F)
  </code></pre>
  
  <p>and the error</p>
  
  <pre><code>TypeError: invalid file: ('C:\\Documents and Settings\\myfile.txt', 'r')
  </code></pre>