On this page
  1. linecache.checkcache
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

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

REPL Inspect

from linecache import checkcache
help(checkcache)

Linked from

Related notes