[Python-ideas] Clear all caches
Paul Moore
p.f.moore at gmail.com
Wed Apr 1 17:27:31 CEST 2015
On 1 April 2015 at 16:03, Guido van Rossum <guido at python.org> wrote:
> The elephant in the room is: what are those caches?
A quick scan of the regrtest code mentioned in
http://bugs.python.org/issue23839 suggest that the following would be
a start:
copyreg dispatch tale
sys.path_importer_cache
zipimport._zip_directory_cache
ABC registry cache(s)
sys._clear_type_cache()
distutils._dir_util._path_created.clear()
re.purge()
_strptime._regex_cache.clear()
urllib.parse.clear_cache()
urllib.request.urlcleanup()
linecache.clearcache()
mimetypes._default_mime_types()
filecmp._cache.clear()
struct._clearcache()
ctypes._reset_cache()
That's actually quite a lot of caches...
Paul
More information about the Python-ideas
mailing list