file's tell() method appears crazily broken (2.0)
Chris Gonnerman
chris.gonnerman at newcenturycomputers.net
Sun Jan 27 12:50:28 EST 2002
On Sun, 27 Jan 2002 15:02:00 GMT, "Steve Holden" <sholden at holdenweb.com>
wrote:
>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
a
>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 testcode.py c:\autoexec.bat
File open at 0
where testcode.py contains your code.
More information about the Python-list
mailing list