file.tell problems (1.5.2/Win32)

Andrew Clover esuzm at primrose.csv.warwick.ac.uk
Wed Jun 23 15:37:31 EDT 1999


I've been meeting some surprises using the seek and tell on file objects
recently. I don't know if these are bugs in Python or stdio, in Win32 or
in general, or are simply broken as designed, but:

 - If a file is opened in 'a'ppend mode, but nothing has yet been written to
   it, tell() returns zero.

 - Values returned by tell() - possibly only on a append file, I don't know -
   seem to be randomly a bit wrong unless flush() is used before reading.

 Can anyone confirm this?

-- 
This posting was brought to you by And Clover.
(Sorry.)




More information about the Python-list mailing list