STINNER Victor added the comment: The check should be moved into the _checkClosed() method. Example:
def _checkClosed(self): io.RawIOBase._checkClosed(self) if self._sslobj is None: raise ValueError("I/O operation on closed SSL socket") ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9177> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com