Trouble with seek(0) command

Peter Hansen peter at
Sat Nov 8 00:18:25 CET 2003

Randy Gamage wrote:
> I can't figure out why this script gets an error.  This is script that gets
> a web page, then parses the title out of the web page.  When it's done
> parsing, I would like to reset the pointer to the beginnning of the response
> file object, but the seek(0) command does not work.  Anybody know why?
> The error message says: AttributeError: addinfourl instance has no attribute
> 'seek'
> But in PythonWin IDE, when I type response and then a ".", the popup options
> include both read and seek.  What's going on?

PythonWin is probably lying to you.

More information about the Python-list mailing list