New submission from Jesús Cea Avión: I think that "functools.lru_cache()" should have the ability to "invalidate" a (possibly cached) value. Something like:
@functools.lru_cache() def func(param): ... func.invalidate(PARAM) # discard this cached call, or ignore if not cached ---------- messages: 292216 nosy: jcea priority: normal severity: normal stage: needs patch status: open title: lru_cache should support invalidations type: enhancement versions: Python 3.7 _______________________________________ 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