strange behaviour of filehandle.tell() function
<p>I don't get why the tell() function doesn't work in this case. Let's create a file with the string "1\n2\n3\n4\n" inside:</p>

<pre><code>f=open('test.tmp','w')
f.write('1\n2\n3\n4\n')
f.close()
</code></pre>

<p>Now, let's open it and run the following code:</p>

<pre><code>fTellResults=[]
f=open('test.tmp','r+')
for line in f:
    fTellResults.append(f.tell())
f.close()
print fTellResults
</code></pre>

<p>As a result I get:</p>

<pre><code>[8L, 8L, 8L, 8L]
</code></pre>

<p>However, I would expect rather this:</p>

<pre><code>[2L, 4L, 6L, 8L]
</code></pre>

<p>Could anyone explain me why it works like this and how could I get the expected result?</p>

<p>p.s. I use Python 2.7.1 on Linux</p>
