Message253367
Using lru_cache() is an implementation detail. I think that lru_cache wrapper should be perfect wrapper, it should support all protocols that are supported by wrapped function (at the same extent as original Python implementation).
Proposed simple patch adds support for pickling, copying and deep-copying lru_cache wrappers. lru_cache wrapper is serialized as global object, i.e. deepcopy() returns the same object, as was in 3.4. Implementing true deep copying (with any semantic) is not so easy, especially for Python implementation. |
|
Date |
User |
Action |
Args |
2015-10-23 08:05:15 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, jaraco |
2015-10-23 08:05:15 | serhiy.storchaka | set | messageid: <1445587515.83.0.974709582893.issue25447@psf.upfronthosting.co.za> |
2015-10-23 08:05:15 | serhiy.storchaka | link | issue25447 messages |
2015-10-23 08:05:15 | serhiy.storchaka | create | |
|