[issue41220] add optional make_key argument to lru_cache
Jim Jewett
report at bugs.python.org
Sat Jul 11 14:54:42 EDT 2020
Jim Jewett <jimjjewett at gmail.com> added the comment:
Going back to Raymond's analysis, this is useful when at least some of the parameters either do not change the result, or are not hashable.
At a minimum, you need to figure out which parameters those are, and whether to drop them or transform them.
Is this already sufficiently rare or tricky that a subclass is justified, instead of trying to shoehorn things into a single key method?
----------
nosy: +Jim.Jewett
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41220>
_______________________________________
More information about the Python-bugs-list
mailing list