RustPython becomes silent if an error is raised in trace() function. The following example can normally print things on CPython while it fails on RustPython.
import sys
def trace(frame, event, arg):
raise NameError
return trace
sys.settrace(trace)
print("fail here")
try:
a = 1/0
except:
print("not allowed")
Output on RustPython --- silent
Output on CPython (Expected):
fail here
not allowed
Environment
Ubuntu 18.04
RustPython 0.2.0
CPython 3.11.3