[issue9293] Unsupported IO operations should raise UnsupportedOperation

2010-09-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r84544. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Pyth

[issue9293] Unsupported IO operations should raise UnsupportedOperation

2010-09-03 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +skrah, stutzbach ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue9293] Unsupported IO operations should raise UnsupportedOperation

2010-09-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch. -- keywords: +patch Added file: http://bugs.python.org/file18733/unsupported.patch ___ Python tracker ___ _

[issue9293] Unsupported IO operations should raise UnsupportedOperation

2010-07-18 Thread Antoine Pitrou
Antoine Pitrou 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 "", line 1, in IOError: can't do nonzero cur-relative seeks -- ___

[issue9293] Unsupported IO operations should raise UnsupportedOperation

2010-07-18 Thread Antoine Pitrou
New submission from Antoine Pitrou : Some of them currently raise IOError. Fortunately, UnsupportedOperation inherits from IOError, which means compatibility can be preserved. Contrast: >>> open("LICENSE").write("bar") Traceback (most recent call last): File "", line 1, in IOError: not writa