[issue41220] add optional make_key argument to lru_cache
Felipe Rodrigues
report at bugs.python.org
Fri Jul 10 22:48:06 EDT 2020
Felipe Rodrigues <felipe at felipevr.com> added the comment:
Hello all,
I love discussions about caching! While I do see the point of Itayazolay's proposal, I think that it should be on the _caller_ to solve the caching issue, and not on the _callee_ to provide a way to make it happen.
That is, I think that if one wants to use a cache, they should make sure their arguments are hashable and not that we should modify called functions to provide workarounds for those.
----------
nosy: +fbidu
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41220>
_______________________________________
More information about the Python-bugs-list
mailing list