Vega strike Python Modules doc
0.5.1
Documentation of the " Modules " folder of Vega strike
|
Functions | |
def | getline |
def | clearcache |
def | getlines |
def | checkcache |
def | updatecache |
Variables | |
list | __all__ = ["getline","clearcache","checkcache"] |
dictionary | cache = {} |
tuple | fp = open(fullname, 'r') |
print '*** Cannot stat', filename, ':', msg More... | |
tuple | lines = fp.readlines() |
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 | ( | ) |
Discard cache entries that are out of date. (This is not checked upon each call!)
Definition at line 44 of file linecache.py.
def linecache.clearcache | ( | ) |
Clear the cache entirely.
Definition at line 27 of file linecache.py.
def linecache.getline | ( | filename, | |
lineno | |||
) |
Definition at line 14 of file linecache.py.
References getlines().
def linecache.getlines | ( | filename) |
Get the lines for a file from the cache. Update the cache if it doesn't contain an entry for this file already.
Definition at line 34 of file linecache.py.
References updatecache().
def linecache.updatecache | ( | filename) |
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.
Definition at line 59 of file linecache.py.
list __all__ = ["getline","clearcache","checkcache"] |
Definition at line 12 of file linecache.py.
dictionary cache = {} |
Definition at line 24 of file linecache.py.
tuple fp = open(fullname, 'r') |
print '*** Cannot stat', filename, ':', msg
Definition at line 93 of file linecache.py.
tuple lines = fp.readlines() |
Definition at line 94 of file linecache.py.