[issue35300] Bug with memoization and mutable objects
bolorsociedad
report at bugs.python.org
Fri Nov 23 07:18:21 EST 2018
bolorsociedad <perezarribas.imanol at gmail.com> added the comment:
I understand it may be inefficient sometimes. Perhaps it would be nice to add an argument to lru_cache to specify that we want to deep copy? Something like
def lru_cache(..., deepcopy=False):
...
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35300>
_______________________________________
More information about the Python-bugs-list
mailing list