[Python-ideas] functools.lru_cache manual cache modification

Ethan Furman ethan at stoneleaf.us
Wed Dec 3 23:33:14 CET 2014


On 12/03/2014 02:24 PM, Constantin Berhard wrote:
> On 03.12.2014 22:22, Andrew Barnert wrote:
> 
> I need this to make my decorator compatible with lru_cache.
> <https://titania.fs.uni-saarland.de/projects/libtco>
> It's only 27 lines of code, you may read it if you want to understand my
> problem. (additionally 62 lines of example code)

I think you are missing the point:  the internals are not going be made public; you need to write your own custom lru_cache.

--
~Ethan~

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20141203/185dedc0/attachment.sig>


More information about the Python-ideas mailing list