James Antill <[EMAIL PROTECTED]> added the comment:
So if I add a:
class _WrapForRecv:
def __init__(self, obj):
self.__obj = obj
def __getattr__(self, name):
if name == "recv": name = "read"
return getattr(self.__obj, name)
...and then change:
r.recv = r.read
...into:
r = _WrapForRecv(r)
...it stops the leak, and afaics nothing bad happens.
----------
nosy: +nevyn
_______________________________________
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3066>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com