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 <>
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:15serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, jaraco
2015-10-23 08:05:15serhiy.storchakasetmessageid: <>
2015-10-23 08:05:15serhiy.storchakalinkissue25447 messages
2015-10-23 08:05:15serhiy.storchakacreate