Message97287
The problem seems to be fixed in trunk (the future 2.7).
BufferedRandom.seek() contains a block labelled "# Undo read ahead." which does not exists in 2.6.
I reproduce the problem with a file opened with mode "rb+"
from io import open
open("tmpfile", "wb").write("abcdefgh" * 1024 + "X")
f = open("tmpfile", "rb+")
print f.read(1) # "a"
f.seek(0, 1)
print f.read(1) # should be "b", 2.6 returns "X" |
|
Date |
User |
Action |
Args |
2010-01-06 01:41:03 | amaury.forgeotdarc | set | recipients:
+ amaury.forgeotdarc, pitrou, pakal |
2010-01-06 01:41:02 | amaury.forgeotdarc | set | messageid: <1262742062.81.0.133693031731.issue7640@psf.upfronthosting.co.za> |
2010-01-06 01:41:01 | amaury.forgeotdarc | link | issue7640 messages |
2010-01-06 01:41:00 | amaury.forgeotdarc | create | |
|