[issue4633] file.tell() gives wrong result

2008-12-11 Thread Yavuz Onder
Yavuz Onder <[EMAIL PROTECTED]> added the comment: O.K. But, is there a way to backtrack to the beginning of the last read line, without explicitly implementing accounting of the real file pointer in the code, and doing "seek(,0)"? The documentation you pointed to implies that,

[issue4633] file.tell() gives wrong result

2008-12-11 Thread Yavuz Onder
New submission from Yavuz Onder <[EMAIL PROTECTED]>: I find that file.tell returns not the byte offset of the next byte, but possibly the byte offset of the next block to be read. I find it always to be a multiple of 1024. Following is a demo of the bug. where I read a few lines into