MCPcopy Create free account
hub / github.com/ipython/ipython / check_linecache_ipython

Function check_linecache_ipython

IPython/core/compilerop.py:153–160  ·  view source on GitHub ↗

Call linecache.checkcache() safely protecting our cached values.

(*args)

Source from the content-addressed store, hash-verified

151
152
153def check_linecache_ipython(*args):
154 """Call linecache.checkcache() safely protecting our cached values.
155 """
156 # First call the original checkcache as intended
157 linecache._checkcache_ori(*args)
158 # Then, update back the cache with our data, so that tracebacks related
159 # to our compiled codes can be produced.
160 linecache.cache.update(linecache._ipython_cache)

Callers

nothing calls this directly

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected