[issue7862] fileio.c: ValueError vs. IOError with impossible operations

2010-09-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: See #9293, where there's a patch. -- resolution: -> duplicate status: open -> closed superseder: -> Unsupported IO operations should raise UnsupportedOperation ___ Python tracker

[issue7862] fileio.c: ValueError vs. IOError with impossible operations

2010-08-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: All of them should probably raise io.UnsupportedOperation instead (which inherits from both IOError and ValueError). -- ___ Python tracker ___

[issue7862] fileio.c: ValueError vs. IOError with impossible operations

2010-08-02 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: -> pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue7862] fileio.c: ValueError vs. IOError with impossible operations

2010-02-05 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +amaury.forgeotdarc ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue7862] fileio.c: ValueError vs. IOError with impossible operations

2010-02-05 Thread Stefan Krah
New submission from Stefan Krah : I think that certain FileIO methods should raise IOError instead of ValueError when a file operation is attempted with the wrong mode. The methods of IOBase are documented to raise IOError in these situations. >>> import io >>> f = io.open("testfile", "w") >>>