MCPcopy Index your code
hub / github.com/RustPython/RustPython / _getval

Method _getval

Lib/pdb.py:1169–1175  ·  view source on GitHub ↗
(self, arg)

Source from the content-addressed store, hash-verified

1167 do_rv = do_retval
1168
1169 def _getval(self, arg):
1170 try:
1171 return eval(arg, self.curframe.f_globals, self.curframe_locals)
1172 except:
1173 exc_info = sys.exc_info()[:2]
1174 self.error(traceback.format_exception_only(*exc_info)[-1].strip())
1175 raise
1176
1177 def _getval_except(self, arg, frame=None):
1178 try:

Callers 4

do_pMethod · 0.95
do_ppMethod · 0.95
do_sourceMethod · 0.95
do_whatisMethod · 0.95

Calls 4

errorMethod · 0.95
format_exception_onlyMethod · 0.80
evalFunction · 0.50
stripMethod · 0.45

Tested by

no test coverage detected