➜

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.

作者 nevyn
收信人 bohdan, nevyn, sharmila
日期 2008-08-29.18:28:32
SpamBayes Score 0.043549858
Marked as misclassified 否
Message-id <1220034513.64.0.75942053304.issue3066@psf.upfronthosting.co.za>
In-reply-to
内容
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.
历史
日期 用户 动作 参数
2008-08-29 18:28:33nevyn修改recipients: + nevyn, sharmila, bohdan
2008-08-29 18:28:33nevyn修改messageid: <1220034513.64.0.75942053304.issue3066@psf.upfronthosting.co.za>
2008-08-29 18:28:33nevyn链接issue3066 messages
2008-08-29 18:28:32nevyn创建