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

Function _post_mortem

Lib/pdb.py:3524–3540  ·  view source on GitHub ↗

Private version of post_mortem, which allow to pass a pdb instance for testing purposes.

(t, pdb_instance)

Source from the content-addressed store, hash-verified

3522
3523
3524def _post_mortem(t, pdb_instance):
3525 """
3526 Private version of post_mortem, which allow to pass a pdb instance
3527 for testing purposes.
3528 """
3529 # handling the default
3530 if t is None:
3531 exc = sys.exception()
3532 if exc is not None:
3533 t = exc.__traceback__
3534
3535 if t is None or (isinstance(t, BaseException) and t.__traceback__ is None):
3536 raise ValueError("A valid traceback must be passed if no "
3537 "exception is being handled")
3538
3539 pdb_instance.reset()
3540 pdb_instance.interaction(None, t)
3541
3542
3543def pm():

Callers 1

post_mortemFunction · 0.85

Calls 3

exceptionMethod · 0.45
resetMethod · 0.45
interactionMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…