linecache
index
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/linecache.py
Module Docs

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.

 
Modules
       
os
sys

 
Functions
       
checkcache(filename=None)
Discard cache entries that are out of date.
(This is not checked upon each call!)
clearcache()
Clear the cache entirely.
getline(filename, lineno, module_globals=None)

 
Data
        __all__ = ['getline', 'clearcache', 'checkcache']