title: Why do we need readlines() when we can iterate over the file handle itself?
body: <p>In Python, after</p>
  
  <pre><code>fh = open('file.txt')
  </code></pre>
  
  <p>one may do the following to iterate over lines:</p>
  
  <pre><code>for l in fh:
      pass
  </code></pre>
  
  <p>Then why do we have <code>fh.readlines()</code>?</p>