[Python-ideas] Clear all caches
Paul Moore
p.f.moore at gmail.com
Wed Apr 1 15:27:54 CEST 2015
On 1 April 2015 at 13:28, Serhiy Storchaka <storchaka at gmail.com> wrote:
> I proposed to add two functions (in some existing lightweight module or add
> a new module):
>
> clear_caches(level=0)
> register_cache(level, clear_func)
>
> clear_caches() calls cache clearing functions for specified level and
> larger.
I'm not sure I understand how "level" would be used. Presumably
anything registering a cache has to decide what level it wants to be
at, but how should it decide? Maybe there should be some standard
levels defined? Is there actually a need for a level parameter at all?
Paul
More information about the Python-ideas
mailing list