title: Python here document without newlines at top and bottom
body: <p>What's the best way to have a here document, without newlines at the top and bottom?  For example:</p>
  
  <pre><code>print '''
  dog
  cat
  '''
  </code></pre>
  
  <p>will have newlines at the top and bottom, and to get rid of them I have to do this:</p>
  
  <pre><code>print '''dog
  cat'''
  </code></pre>
  
  <p>which I find to be much less readable.</p>