The patch improves io.py and socket.py's SocketIO: * I've removed all asserts and replaces them by explict raises * I've added four convenient methods _check_readable, _check_writable, _check_seekable and _check_closed. The methods take an optional msg argument for future usage. * unit tests for the stdin.name ... and io.__all__. open problems: The io.__all__ tuple contains a reference to SocketIO but SocketIO is in socket.py. from io import * fails. Should the facade SocketIO class moved to io.py or should SocketIO be removed from io.__all__? The predecessor of the patch was discussed in the sf.net bug tracker http://bugs.python.org/issue1771364 Christian -------------- next part -------------- A non-text attachment was scrubbed... Name: io_assert.patch Type: text/x-patch Size: 10330 bytes Desc: not available Url : http://mail.python.org/pipermail/python-3000/attachments/20070825/f76066fb/attachment-0001.bin -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 252 bytes Desc: OpenPGP digital signature Url : http://mail.python.org/pipermail/python-3000/attachments/20070825/f76066fb/attachment-0001.pgp