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

Method user_return

Lib/pdb.py:599–606  ·  view source on GitHub ↗

This function is called when a return trap is set here.

(self, frame, return_value)

Source from the content-addressed store, hash-verified

597 self.cmdqueue.append(f'_pdbcmd_restore_lastcmd {self.lastcmd}')
598
599 def user_return(self, frame, return_value):
600 """This function is called when a return trap is set here."""
601 if self._wait_for_mainpyfile:
602 return
603 frame.f_locals['__return__'] = return_value
604 self.set_convenience_variable(frame, '_retval', return_value)
605 self.message('--Return--')
606 self.interaction(frame, None)
607
608 def user_exception(self, frame, exc_info):
609 """This function is called if an exception occurs,

Callers

nothing calls this directly

Calls 3

messageMethod · 0.95
interactionMethod · 0.95

Tested by

no test coverage detected