MCPcopy Index your code
hub / github.com/python/cpython / __init__

Method __init__

Lib/pdb.py:246–257  ·  view source on GitHub ↗
(self, target)

Source from the content-addressed store, hash-verified

244
245class _ModuleTarget(_ExecutableTarget):
246 def __init__(self, target):
247 self._target = target
248
249 import runpy
250 try:
251 _, self._spec, self._code = runpy._get_module_details(self._target)
252 except ImportError as e:
253 print(f"ImportError: {e}")
254 sys.exit(1)
255 except Exception:
256 traceback.print_exc()
257 sys.exit(1)
258
259 def __repr__(self):
260 return self._target

Callers

nothing calls this directly

Calls 2

print_excMethod · 0.80
exitMethod · 0.45

Tested by

no test coverage detected