Message72147
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. |
|
Date |
User |
Action |
Args |
2008-08-29 18:28:33 | nevyn | set | recipients:
+ nevyn, sharmila, bohdan |
2008-08-29 18:28:33 | nevyn | set | messageid: <1220034513.64.0.75942053304.issue3066@psf.upfronthosting.co.za> |
2008-08-29 18:28:33 | nevyn | link | issue3066 messages |
2008-08-29 18:28:32 | nevyn | create | |
|