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

Method _msg_val_func

Lib/pdb.py:2122–2130  ·  view source on GitHub ↗
(self, arg, func)

Source from the content-addressed store, hash-verified

2120 self.error(self._format_exc(exc))
2121
2122 def _msg_val_func(self, arg, func):
2123 try:
2124 val = self._getval(arg)
2125 except:
2126 return # _getval() has displayed the error
2127 try:
2128 self.message(func(val))
2129 except:
2130 self._error_exc()
2131
2132 def _safe_repr(self, obj, expr):
2133 try:

Callers 2

do_pMethod · 0.95
do_ppMethod · 0.95

Calls 4

_getvalMethod · 0.95
messageMethod · 0.95
_error_excMethod · 0.95
funcFunction · 0.50

Tested by

no test coverage detected