]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Set sys.last_{type,value} to characteristics of last unhandled exception.
authorGuido van Rossum <guido@python.org>
Wed, 4 Mar 1992 16:39:39 +0000 (16:39 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 4 Mar 1992 16:39:39 +0000 (16:39 +0000)
Python/pythonmain.c

index f7ff36ccf96a2a2b0289b7ab0f84106bc3270eb4..b00a270054de2960f91c9ba6646366405e3a7926 100644 (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) {