PyDocs

Nav

File and Directory Access

lazycache

linecache

function · Added in 3.5 (source)
  • lazycache(filename, module_globals)
Seed the cache for filename with module_globals.

The module loader will be asked for the source only when getlines is
called, not immediately.

If there is an entry in the cache already, it is not altered.

:return: True if a lazy load is registered in the cache,
    otherwise False. To register such a load a module loader with a
    get_source method must be found, the filename must be a cacheable
    filename, and the filename must not be already cached.
0 Examples
No examples for linecache/lazycache.
See Also
No see-alsos for linecache/lazycache
0 Notes
No notes for lazycache