Module linecache
[hide private]
[frames] | no frames]

Module linecache

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.

Functions [hide private]
 
getline(filename, lineno, module_globals=None)
 
clearcache()
Clear the cache entirely.
 
getlines(filename, module_globals=None)
Get the lines for a file from the cache.
 
checkcache(filename=None)
Discard cache entries that are out of date.
 
updatecache(filename, module_globals=None)
Update a cache entry and return its list of lines.
Variables [hide private]
  cache = {'/home/edloper/newdata/projects/epydoc/src/epydoc/doc...

Imports: sys, os


Function Details [hide private]

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.

checkcache(filename=None)

 

Discard cache entries that are out of date. (This is not checked upon each call!)

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.


Variables Details [hide private]

cache

Value:
{'/home/edloper/newdata/projects/epydoc/src/epydoc/docintrospecter.py'\
: (41416,
   1206919356.0,
   ['''# epydoc -- Introspection
''',
    '''#
''',
    '''# Copyright (C) 2005 Edward Loper
...