This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author alex
Recipients alex, christian.heimes, dstufft, geertj, giampaolo.rodola, janssen, pitrou
Date 2014-10-05.22:54:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1412549679.68.0.517666156342.issue22559@psf.upfronthosting.co.za>
In-reply-to
Content
Unfortunately it can't be a weakref in python2 :-(

In Python3 socket._socketobject *subclasses* _socket.socket, so when we pass "self" to stuff, it's has the right C-level fields but it's also a Python-levle object so it can have a weakref.

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.
History
Date User Action Args
2014-10-05 22:54:39alexsetrecipients: + alex, geertj, janssen, pitrou, giampaolo.rodola, christian.heimes, dstufft
2014-10-05 22:54:39alexsetmessageid: <1412549679.68.0.517666156342.issue22559@psf.upfronthosting.co.za>
2014-10-05 22:54:39alexlinkissue22559 messages
2014-10-05 22:54:39alexcreate