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

Method user_return

Lib/pdb.py:296–302  ·  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

294 return 1
295
296 def user_return(self, frame, return_value):
297 """This function is called when a return trap is set here."""
298 if self._wait_for_mainpyfile:
299 return
300 frame.f_locals['__return__'] = return_value
301 self.message('--Return--')
302 self.interaction(frame, None)
303
304 def user_exception(self, frame, exc_info):
305 """This function is called if an exception occurs,

Callers

nothing calls this directly

Calls 2

messageMethod · 0.95
interactionMethod · 0.95

Tested by

no test coverage detected