python 3 and stringio.seek

Michele Petrazzo michele.petrazzo at REMOVE_me_unipex.it
Tue Jul 28 09:30:49 EDT 2009


Hi list,
I'm trying to port a my library to python 3, but I have a problem with a
the stringio.seek:
the method not accept anymore a value like pos=-6 mode=1, but the "old"
(2.X) version yes...

The error:
   File "/home/devel/Py3/lib/python3.0/io.py", line 2031, in seek
     return self._seek(pos, whence)
IOError: Can't do nonzero cur-relative seeks


How solve this?

Thanks,
MIchele



More information about the Python-list mailing list