file read : feature or bug ?

Jeff Epler jepler at unpythonic.net
Tue Apr 15 12:26:17 EDT 2003


When you're using text files, seek will not operate as you expect.  The
C standard defines that only offsets returned by ftell are legal
arguments to fseek when working with a text file, and Python doesn't
prevent you from shooting yourself in the foot here.

Jeff





More information about the Python-list mailing list