title: Why doesn't .rstrip('\n') work?
body: <p>Let's say <code>doc.txt</code> contains</p>
  
  <pre><code>a
  b
  c
  d
  </code></pre>
  
  <p>and that my code is</p>
  
  <pre><code>f = open('doc.txt')
  doc = f.read()
  doc = doc.rstrip('\n')
  print doc
  </code></pre>
  
  <p>why do I get the same values?</p>