Steven D'Aprano added the comment: Perhaps the existing ``cache_clear`` method could take optional arguments?
def cache_clear(self, *args, **kw): if not (args or kw): # clear the entire cache else: # clear just the cache entry for *args, **kw ---------- components: +Library (Lib) nosy: +rhettinger, steven.daprano _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30153> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com