[issue25447] TypeError invoking deepcopy on lru_cache
Serhiy Storchaka
report at bugs.python.org
Sun Dec 27 13:19:04 EST 2015
Serhiy Storchaka added the comment:
The Python implementation survives a deepcopy because the Python implementation has a function type, and functions functions are copied as atoms.
Proposed patch just implements __copy__ and __deepcopy__ methods that returns the object itself for the lru_cache object.
----------
stage: resolved -> patch review
Added file: http://bugs.python.org/file41435/lru_cache_simple_copy.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25447>
_______________________________________
More information about the Python-bugs-list
mailing list