[issue41220] add optional make_key argument to lru_cache

Raymond Hettinger report at bugs.python.org
Mon Jul 6 19:34:45 EDT 2020


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

What is the given example trying to accomplish?  It looks like every possible input list would be cached using just the first element of the list.  Would cached_func([10, 20, 30]) and cached_func([10, 11, 12]) return the same sum?  If not, why would that be desireable?

----------
assignee:  -> rhettinger

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41220>
_______________________________________


More information about the Python-bugs-list mailing list