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

Method report_callback_exception

Lib/tkinter/__init__.py:2533–2544  ·  view source on GitHub ↗

Report callback exception on sys.stderr. Applications may want to override this internal function, and should when sys.stderr is None.

(self, exc, val, tb)

Source from the content-addressed store, hash-verified

2531 exec(open(base_py).read(), dir)
2532
2533 def report_callback_exception(self, exc, val, tb):
2534 """Report callback exception on sys.stderr.
2535
2536 Applications may want to override this internal function, and
2537 should when sys.stderr is None."""
2538 import traceback
2539 print("Exception in Tkinter callback", file=sys.stderr)
2540 sys.last_exc = val
2541 sys.last_type = exc
2542 sys.last_value = val
2543 sys.last_traceback = tb
2544 traceback.print_exception(exc, val, tb)
2545
2546 def __getattr__(self, attr):
2547 "Delegate attribute access to the interpreter object"

Callers 1

_report_exceptionMethod · 0.80

Calls 2

print_exceptionMethod · 0.80
printFunction · 0.50

Tested by

no test coverage detected