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 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:33nevynsetrecipients: + nevyn, sharmila, bohdan
2008-08-29 18:28:33nevynsetmessageid: <1220034513.64.0.75942053304.issue3066@psf.upfronthosting.co.za>
2008-08-29 18:28:33nevynlinkissue3066 messages
2008-08-29 18:28:32nevyncreate