Message253367
| Author |
serhiy.storchaka |
| Recipients |
jaraco, rhettinger, serhiy.storchaka |
| Date |
2015年10月23日.08:05:14 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1445587515.83.0.974709582893.issue25447@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| 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 |
|