[issue44310] lru_cache memory leak

Pablo Galindo Salgado report at bugs.python.org
Fri Jun 4 10:46:56 EDT 2021


Pablo Galindo Salgado <pablogsal at gmail.com> added the comment:

Using a weak dictionary is not a correct solution as the cache must take string ownership of the arguments and return value to do it's job properly. Moreover, there are many types in Python that don't support weak references so this will be a backwards incompatible change and limiting the cache quite a lot.

----------

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


More information about the Python-bugs-list mailing list