[issue6629] seek doesn't properly handle file buffer, leads to silent data corruption

2009-08-05 Thread Karoly Lorentey
Karoly Lorentey added the comment: The patch does fix my issue, thank you. -- ___ Python tracker <http://bugs.python.org/issue6629> ___ ___ Python-bugs-list m

[issue6629] seek doesn't properly handle file buffer, leads to silent data corruption

2009-08-03 Thread Karoly Lorentey
New submission from Karoly Lorentey : The new io.BufferedRandom implementation in Python 3.1 has a broken seek that seems not to properly handle the case when the target of the seek lies inside the contents of the file buffer. It leaves the file object in a confused state, such that the next