retval Print the return value for the last return of a function.
(self, arg)
| 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): |
nothing calls this directly
no test coverage detected