Reading a Line From File Without Advancing [Pythonic Approach]
<p>Whats a pythonic approach for reading a file from a file but not advancing where you are in the file?</p>

<p>For example, if you have a file of </p>

<pre><code>cat1
cat2
cat3
</code></pre>

<p>and you do <code>file.readline()</code> you will get <code>cat1\n</code> . The next <code>file.readline()</code> will return <code>cat2\n</code></p>

<p>Is there some functionality like <code>file.some_function_here_nextline()</code> to get <code>cat1\n</code> then you can later do <code>file.readline()</code> and get back <code>cat1\n</code>?</p>
