Orbits
1
|
Functions | |
def | getline |
def | clearcache |
def | getlines |
def | checkcache |
def | updatecache |
Variables | |
list | __all__ = ["getline", "clearcache", "checkcache"] |
dictionary | cache = {} |
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.
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.
list linecache.__all__ = ["getline", "clearcache", "checkcache"] |
dictionary linecache.cache = {} |
Copyright 2014 Google Inc. All rights reserved.