On this page
linecache.clearcache
Prev: linecache.checkcache | Up: linecache | Next: linecache.getline
Rel: linecache.checkcache, linecache.getline, linecache.lazycache
Ref: docs.python.org — linecache.clearcache
Tags: #public #python3 #stdlib #linecache
Import
import linecache
from linecache import clearcache
Signature & Overview
linecache.clearcache()
Clear the cache entirely.
Usage
import linecache
linecache.clearcache() # frees all cached source file contents from RAM
Gotchas
- Frees memory in long-running processes that inspected many source files.
REPL Inspect
from linecache import clearcache
help(clearcache)
Linked from
Related notes
- tuts/python3/stdlib_module/linecache/checkcache Linked here; links to this page; shared tags: #linecache, #stdlib
- tuts/python3/stdlib_module/linecache/getline Linked here; links to this page; shared tags: #linecache, #stdlib
- tuts/python3/stdlib_module/linecache/lazycache Linked here; links to this page; shared tags: #linecache, #stdlib
- tuts/python3/stdlib_module/linecache Linked here; links to this page; shared tags: #stdlib
- tuts/c/stdlib shared tags: #stdlib
- tuts/c/stdlib/assert shared tags: #stdlib
- tuts/c/stdlib/assert/assert shared tags: #stdlib
- tuts/c/stdlib/assert/static_assert shared tags: #stdlib
- tuts/c/stdlib/ctype shared tags: #stdlib
- tuts/c/stdlib/ctype/isalpha shared tags: #stdlib