Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Doc/library/linecache.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ The :mod:`linecache` module defines the following functions:
it is looked up relative to the entries in the module search path, ``sys.path``.


.. function:: getlines(filename, module_globals=None)

Get all lines from file named *filename*. If the file was previously cached
then return from cache else cache first and then return all lines. *filename*
and *module_globals* behaves similar to explanation in :func:`getline` sister
function.


.. function:: clearcache()

Clear the cache. Use this function if you no longer need lines from files
Expand Down