Message72147
| Author |
nevyn |
| Recipients |
bohdan, nevyn, sharmila |
| Date |
2008年08月29日.18:28:32 |
| SpamBayes Score |
0.043549858 |
| Marked as misclassified |
No |
| Message-id |
<1220034513.64.0.75942053304.issue3066@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| 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 |
|