file.tell() -- obscure IOError

Uwe Mayer merkosh at
Sat Jun 15 04:12:22 CEST 2002


i have an object which conforms to the file protocoll. while calling the 
self.file.tell()   method, i get the following error message:

>>> s1 == s2
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "", line 153, in __cmp__
    data1 =
  File "", line 205, in read
    maxsize = len(self) -self.tell()
  File "", line 234, in tell
    return self.file.tell() -self.value.start
IOError: (0, 'Error')

when does tell() raise an IOError?

Thanks for any help!

More information about the Python-list mailing list