linecache.lazycache()

linecache.lazycache(filename, module_globals)

Capture enough detail about a non-file-based module to permit getting its lines later via getline() even if module_globals is None in the later call. This avoids doing I/O until a line is actually needed, without having to carry the module globals around indefinitely.

New in version 3.5.

doc_python
2016-10-07 17:35:54
Comments
Leave a Comment

Please login to continue.