summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-03-04 16:39:39 (GMT)
committerGuido van Rossum <guido@python.org>1992-03-04 16:39:39 (GMT)
commitc4adc8337850796b3ca74fde4e594df5d39279f0 (patch)
tree1a08af285abd7458ebe82e9ca281403ba15303b6 /Python
parentfebd551bab28b3a90b838e4782726d9fb3a587c7 (diff)
downloadcpython-c4adc8337850796b3ca74fde4e594df5d39279f0.zip
cpython-c4adc8337850796b3ca74fde4e594df5d39279f0.tar.gz
cpython-c4adc8337850796b3ca74fde4e594df5d39279f0.tar.bz2
Set sys.last_{type,value} to characteristics of last unhandled exception.
Diffstat (limited to 'Python')
-rw-r--r--Python/pythonmain.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/pythonmain.c b/Python/pythonmain.c
index f7ff36c..b00a270 100644
--- a/Python/pythonmain.c
+++ b/Python/pythonmain.c
@@ -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) {
'bug_3604576'>bug_3604576 Tcl is a high-level, general-purpose, interpreted, dynamic programming language. It was designed with the goal of being very simple but powerful.
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandreask <andreask>2014-08-01 20:07:40 (GMT)
committerandreask <andreask>2014-08-01 20:07:40 (GMT)
commitb0734caef2480d4b79d99c4561b5e511b049a824 (patch)
tree33a548b1c815761f267175bdff590a4993021143
parent698e132740044551e7e694cf1158f05eead16c7b (diff)
downloadtcl-b0734caef2480d4b79d99c4561b5e511b049a824.zip
tcl-b0734caef2480d4b79d99c4561b5e511b049a824.tar.gz
tcl-b0734caef2480d4b79d99c4561b5e511b049a824.tar.bz2
Addition of a cast in tclWinFile.c to match types in a comparison, and
fix of a TRACE string literal in tclExecute.c with a bogus escape. Both would otherwise bug a Windows debug build (where warnings are errors).