file's tell() method appears crazily broken (2.0)

Chris Gonnerman chris.gonnerman at
Sun Jan 27 18:50:28 CET 2002

On Sun, 27 Jan 2002 15:02:00 GMT, "Steve  Holden" <sholden at>

>Sorry if this is an old error, I couldn't find anything on SourceForge. I'd
>really like to know if it's repeatable in other environments.
>I cam across this when the rfc822 library failed reading a file containing
>newsgroup post. Some debugging led me to a really simple program which
>exhibits the same error:
>import sys
>fp = open(sys.argv[1], "r")
>print "File open at", fp.tell()

I'm running 2.1.1 under Win98; no problems here:

    C:\WINDOWS\DESKTOP>python c:\autoexec.bat
    File open at 0

where contains your code.

More information about the Python-list mailing list