[docs] [issue33774] Document that @lru_cache caches based on exactly how the function arguments are specified

Al-Scandar Solstag report at bugs.python.org
Mon Jun 25 09:28:07 EDT 2018


Al-Scandar Solstag <solstag at member.fsf.org> added the comment:

Speaking frankly, I might not have grasped what might happen by reading your line. I think having at least a minimal example is crucial. Perhaps:

"Distinct argument patterns, such as `f(1)` and `f(first_arg=1)`, may not cache for each other even if the underlying function sees them as equivalent calls."

----------

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


More information about the docs mailing list