Would it be desirable to save the state of functools.cache?

Would it be desirable to save the state of functools.cache between program executions? For example, by providing cache_state property on the cache that is pickle-able.

Conceivably. I know I've had cases where this would be helpful. (But on the other hand, it's not *that* hard to write your own persistent cache for your specific use case if you need it). I think this is a case where someone should just create a PR and submit it. No need for a big debate, the core developer who reviews the PR can make a decision (or suggest further discussion if the PR exposes complexities that aren't immediately apparent). Paul On Tue, 24 May 2022 at 20:06, Neil Girdhar <mistersheik@gmail.com> wrote:

Conceivably. I know I've had cases where this would be helpful. (But on the other hand, it's not *that* hard to write your own persistent cache for your specific use case if you need it). I think this is a case where someone should just create a PR and submit it. No need for a big debate, the core developer who reviews the PR can make a decision (or suggest further discussion if the PR exposes complexities that aren't immediately apparent). Paul On Tue, 24 May 2022 at 20:06, Neil Girdhar <mistersheik@gmail.com> wrote:
participants (2)
-
Neil Girdhar
-
Paul Moore