file's tell() method appears crazily broken (2.0)
chris.gonnerman at newcenturycomputers.net
Sun Jan 27 18:50:28 CET 2002
On Sun, 27 Jan 2002 15:02:00 GMT, "Steve Holden" <sholden at holdenweb.com>
>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:
>fp = open(sys.argv, "r")
>print "File open at", fp.tell()
I'm running 2.1.1 under Win98; no problems here:
C:\WINDOWS\DESKTOP>python testcode.py c:\autoexec.bat
File open at 0
where testcode.py contains your code.
More information about the Python-list