This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author amaury.forgeotdarc
Recipients amaury.forgeotdarc, pakal, pitrou
Date 2010-01-06.01:41:00
SpamBayes Score 6.0062695e-07
Marked as misclassified No
Message-id <1262742062.81.0.133693031731.issue7640@psf.upfronthosting.co.za>
In-reply-to
Content
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"
History
Date User Action Args
2010-01-06 01:41:03amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, pitrou, pakal
2010-01-06 01:41:02amaury.forgeotdarcsetmessageid: <1262742062.81.0.133693031731.issue7640@psf.upfronthosting.co.za>
2010-01-06 01:41:01amaury.forgeotdarclinkissue7640 messages
2010-01-06 01:41:00amaury.forgeotdarccreate