Set sys.last_{type,value} to characteristics of last unhandled exception.

This commit is contained in:
Guido van Rossum 1992-03-04 16:39:39 +00:00
parent febd551bab
commit c4adc83378

View file

@ -300,6 +300,8 @@ print_error()
goaway(1);
}
}
sysset("last_type", exception);
sysset("last_value", v);
if (printobject(exception, stderr, PRINT_RAW) != 0)
err_clear();
if (v != NULL && v != None) {