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 serhiy.storchaka
Recipients ncoghlan, rhettinger, serhiy.storchaka, thesheep
Date 2013-12-03.20:47:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1386103628.17.0.285120539478.issue19859@psf.upfronthosting.co.za>
In-reply-to
Content
Perhaps following technique can be used to prevent object's life prolongation:

def spam(self, *args, **kwargs):
    @lru_cache(maxsize=20)
    def spam(foo, bar=1, *, baz=None):
        ...
    self.spam = spam
    return self.spam(*args, **kwargs)
History
Date User Action Args
2013-12-03 20:47:08serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, ncoghlan, thesheep
2013-12-03 20:47:08serhiy.storchakasetmessageid: <1386103628.17.0.285120539478.issue19859@psf.upfronthosting.co.za>
2013-12-03 20:47:08serhiy.storchakalinkissue19859 messages
2013-12-03 20:47:08serhiy.storchakacreate