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

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

REPL Inspect

from linecache import clearcache
help(clearcache)

Linked from

Related notes