Orbits  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
Functions | Variables
linecache Namespace Reference

Functions

def getline
 
def clearcache
 
def getlines
 
def checkcache
 
def updatecache
 

Variables

list __all__ = ["getline", "clearcache", "checkcache"]
 
dictionary cache = {}
 

Detailed Description

Cache lines from files.

This is intended to read lines from modules imported -- hence if a filename
is not found, it will look down the module search path for a file by
that name.

Function Documentation

def linecache.checkcache (   filename = None)
Discard cache entries that are out of date.
(This is not checked upon each call!)
def linecache.clearcache ( )
Clear the cache entirely.
def linecache.getline (   filename,
  lineno,
  module_globals = None 
)
def linecache.getlines (   filename,
  module_globals = None 
)
Get the lines for a file from the cache.
Update the cache if it doesn't contain an entry for this file already.
def linecache.updatecache (   filename,
  module_globals = None 
)
Update a cache entry and return its list of lines.
If something's wrong, print a message, discard the cache entry,
and return an empty list.

Variable Documentation

list linecache.__all__ = ["getline", "clearcache", "checkcache"]
dictionary linecache.cache = {}

Copyright 2014 Google Inc. All rights reserved.