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

Method _getval_except

Lib/pdb.py:2109–2116  ·  view source on GitHub ↗
(self, arg, frame=None)

Source from the content-addressed store, hash-verified

2107 raise
2108
2109 def _getval_except(self, arg, frame=None):
2110 try:
2111 if frame is None:
2112 return eval(arg, self.curframe.f_globals, self.curframe.f_locals)
2113 else:
2114 return eval(arg, frame.f_globals, frame.f_locals)
2115 except BaseException as exc:
2116 return _rstr('** raised %s **' % self._format_exc(exc))
2117
2118 def _error_exc(self):
2119 exc = sys.exception()

Callers 2

_show_displayMethod · 0.95
do_displayMethod · 0.95

Calls 2

_format_excMethod · 0.95
_rstrClass · 0.85

Tested by

no test coverage detected