title: reading lines 2 at a time
body: <p>Is there a better way to read lines two at a time from a file in python than:</p>
  
  <pre><code>with open(fn) as f:
      for line in f:
          try:
              line2 = f.next()
          except StopIteration:
              line2 = ''
          print line, line2 # or something more interesting
  </code></pre>
  
  <p>I'm in 2.5.4.  Anything different in newer versions?</p>
  
  <p>EDIT: a deleted answer noted: in py3k you'd need to do next(f) instead of f.next().  Not to mention the print change</p>