From 6ac258d381b5300e3ec935404a111e8dff4617d4 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 12 May 1993 08:24:20 +0000 Subject: * pythonrun.c: Print exception type+arg *after* stack trace instead of before it. * ceval.c, object.c: moved testbool() to object.c (now extern visible) * stringobject.c: fix bugs in and rationalize string resize in formatstring() * tokenizer.[ch]: fix non-working code for lines longer than BUFSIZ --- Python/pythonrun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/pythonrun.c') diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 98008b4b9b..3898d13af2 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -245,6 +245,7 @@ print_error() if (f == NULL) fprintf(stderr, "lost sys.stderr\n"); else { + printtraceback(f); if (writeobject(exception, f, PRINT_RAW) != 0) err_clear(); if (v != NULL && v != None) { @@ -253,7 +254,6 @@ print_error() err_clear(); } writestring("\n", f); - printtraceback(f); } XDECREF(exception); XDECREF(v); -- cgit v1.2.1