MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / do_retval

Method do_retval

tools/python-3.11.9-amd64/Lib/pdb.py:1220–1227  ·  view source on GitHub ↗

retval Print the return value for the last return of a function.

(self, arg)

Source from the content-addressed store, hash-verified

1218 do_a = do_args
1219
1220 def do_retval(self, arg):
1221 """retval
1222 Print the return value for the last return of a function.
1223 """
1224 if '__return__' in self.curframe_locals:
1225 self.message(self._safe_repr(self.curframe_locals['__return__'], "retval"))
1226 else:
1227 self.error('Not yet returned!')
1228 do_rv = do_retval
1229
1230 def _getval(self, arg):

Callers

nothing calls this directly

Calls 3

messageMethod · 0.95
_safe_reprMethod · 0.95
errorMethod · 0.95

Tested by

no test coverage detected