[issue4853] I/O operation on closed socket: improve the error message

2009-12-11 Thread STINNER Victor
STINNER Victor added the comment: Well, this issue is not really important. The current behaviour is already correct (raising an error if the file is closed). -- resolution: -> wont fix status: open -> closed ___ Python tracker

[issue4853] I/O operation on closed socket: improve the error message

2009-01-05 Thread STINNER Victor
New submission from STINNER Victor : I don't like the current behaviour of Python on closed socket: >>> import socket >>> s=socket.socket(socket.AF_INET, socket.SOCK_STREAM) >>> s.close() >>> s.fileno() -1 >>> s.getsockname() Traceback (most recent call last): File "", line 1, in socket.error