On this page
linecache.checkcache
Up: linecache | Next: linecache.clearcache
Rel: linecache.clearcache, linecache.getline, linecache.lazycache
Ref: docs.python.org — linecache.checkcache
Tags: #public #python3 #stdlib #linecache
Import
import linecache
from linecache import checkcache
Signature & Overview
linecache.checkcache(filename=None)
Discard cache entries that are out of date.
Usage
import linecache
linecache.checkcache() # invalidates cached entries whose mtime/size changed on disk
Gotchas
- Call after editing files on disk if your process uses
linecache.getline().
REPL Inspect
from linecache import checkcache
help(checkcache)
Linked from
Related notes
- tuts/python3/stdlib_module/linecache/clearcache 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