[issue36485] Add a way to clear all caches

Brett Cannon report at bugs.python.org
Mon Apr 1 14:17:56 EDT 2019


Brett Cannon <brett at python.org> added the comment:

RE: "And do you think polling for a new magic attribute is the right approach?": my thinking behind that idea is that by standardizing the function name it's easy to tell if there's a cache, but you can also do away with the registration with a 3 lines of code. To me, the priority is clearing caches on a per-module basici and having a clear-all mechanism can be beneficial, not the other way around.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36485>
_______________________________________


More information about the Python-bugs-list mailing list