Message253239
I'm not sure that we can say that deepcopying was not supported for lru_cache. copy.deepcopy() returned the same object, as for immutable objects, but can we consider decorated with lru_cache() function immutable?
The question is: if made functools._lru_cache_wrapper to support deepcopy protocol, should the result of copy.deepcopy() share the cache with original? |
|
Date |
User |
Action |
Args |
2015-10-20 18:08:26 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, jaraco |
2015-10-20 18:08:26 | serhiy.storchaka | set | messageid: <1445364506.83.0.089959689495.issue25447@psf.upfronthosting.co.za> |
2015-10-20 18:08:26 | serhiy.storchaka | link | issue25447 messages |
2015-10-20 18:08:26 | serhiy.storchaka | create | |
|