title: Strange path separators on Windows
body: <p>I an running this code:</p>
  
  <pre><code>#!/usr/bin/python      coding=utf8
  #  test.py = to demo fault
  def loadFile(path):
      f = open(path,'r')
      text = f.read()
      return text
  if __name__ == '__main__':
      path = 'D:\work\Kindle\srcs\test1.html'
      document = loadFile(path)
      print len(document)
  </code></pre>
  
  <p>It gives me a trackback</p>
  
  <pre><code>D:\work\Kindle\Tests&gt;python.exe test.py
  Traceback (most recent call last):
    File "test.py", line 11, in &lt;module&gt;
      document = loadFile(path)
    File "test.py", line 5, in loadFile
      f = open(path,'r')
  IOError: [Errno 22] invalid mode ('r') or filename: 'D:\\work\\Kindle\\srcs\test1.html'
  
  D:\work\Kindle\Tests&gt;
  </code></pre>
  
  <p>If I change the path line to </p>
  
  <pre><code>path = 'D:\work\Kindle\srcs\\test1.html'
  </code></pre>
  
  <p>(note the double \\) it all works fine. </p>
  
  <p>Why? Either the separator is '\' or it is not, not a mix?</p>
  
  <p>System. Windows 7, 64bit, 
  Python 2.7 (r27:82525, Jul  4 2010, 09:01:59) [MSC v.1500 32 bit (Intel)] on win32</p>
  
  <p>Checked - and all the backslashes appear correctly. </p>