Geert Jansen added the comment: > In Python2 socket._socketobject composes with _socket.socket, so we pass > "self._sock", that way it has teh right C-level fields. Unfortunately taking > a weakref of _socket.socket is not allowed.
I see, and agree that making it weakref-able would be a bad idea for a minor release. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22559> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com