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 grahamd
Recipients BTaskaya, grahamd, larry, ncoghlan, ofey404, ping, yselivanov
Date 2022-03-25.23:18:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
It is Django I would worry about and look at closely as they do stuff with decorators on instance methods that uses partials.

    def _wrapper(self, *args, **kwargs):
        # bound_method has the signature that 'decorator' expects i.e. no
        # 'self' argument, but it's a closure over self so it can call
        # 'func'. Also, wrap method.__get__() in a function because new
        # attributes can't be set on bound method objects, only on functions.
        bound_method = wraps(method)(partial(method.__get__(self, type(self))))
        for dec in decorators:
            bound_method = dec(bound_method)
        return bound_method(*args, **kwargs)
Date User Action Args
2022-03-25 23:18:35grahamdsetrecipients: + grahamd, ping, ncoghlan, larry, yselivanov, BTaskaya, ofey404
2022-03-25 23:18:35grahamdsetmessageid: <>
2022-03-25 23:18:35grahamdlinkissue46761 messages
2022-03-25 23:18:35grahamdcreate