[issue9293] Unsupported IO operations should raise UnsupportedOperation

Antoine Pitrou report at bugs.python.org
Sun Jul 18 16:38:19 CEST 2010


Antoine Pitrou <pitrou at free.fr> added the comment:

Another kind of unsupported operation is non-absolute seeking on a TextIOWrapper:

>>> open("LICENSE").seek(1, 1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
IOError: can't do nonzero cur-relative seeks

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9293>
_______________________________________


More information about the Python-bugs-list mailing list