Module: utils.ulinecache — IPython 5.3.0 documentation

# Module: `utils.ulinecache`

Wrapper around linecache which decodes files to unicode according to PEP 263.

This is only needed for Python 2 - linecache in Python 3 does the same thing itself.

## 2 Functions

`IPython.utils.ulinecache.` `getlines`(filename, module_globals=None)

  Get the lines for a Python source file from the cache. Update the cache if it doesn’t contain an entry for this file already.

`IPython.utils.ulinecache.` `getline`(filename, lineno, module_globals=None)