[Python-ideas] functools.lru_cache manual cache modification

Ethan Furman ethan at stoneleaf.us
Fri Dec 5 20:35:31 CET 2014


A couple comments:

You need better names.  f? _f? fun? which of those two are the same?

Have you tried it without the 'return_from' function?

It might be interesting to have this be a more general 'recurse' decorator.

You could have your own basic cache, and specify which methods you need for somebody to substitute in a different cache
(which is a better option for all previous Pythons than making a change to 3.5).

--
~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/20141205/9d79ec7f/attachment.sig>


More information about the Python-ideas mailing list