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

Function extract_module_locals

IPython/utils/frame.py:89–94  ·  view source on GitHub ↗

Returns (module, locals) of the function `depth` frames away from the caller

(depth=0)

Source from the content-addressed store, hash-verified

87#def debugx(expr,pre_msg=''): pass
88
89def extract_module_locals(depth=0):
90 """Returns (module, locals) of the function `depth` frames away from the caller"""
91 f = sys._getframe(depth + 1)
92 global_ns = f.f_globals
93 module = sys.modules[global_ns['__name__']]
94 return (module, f.f_locals)

Callers 1

embed_kernelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected