[issue4633] file.tell() gives wrong result
report at bugs.python.org
Thu Dec 11 17:10:57 CET 2008
Yavuz Onder <yavuz at teksavvy.com> 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(<file pointer>,0)"?
The documentation you pointed to implies that, in "for name in file:"
loop a clean backtracking is not possible. Am I missing something?
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list