summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1993-05-12 08:24:20 +0000
committerGuido van Rossum <guido@python.org>1993-05-12 08:24:20 +0000
commit6a3616dc43c72e88d51367759e957523e734893c (patch)
tree1ffe63c01614f7c0e435e92bc176521aa251a83d /Python/pythonrun.c
parent1b37bc667fd5371d19310f1db2357d2e57500f37 (diff)
downloadcpython-6a3616dc43c72e88d51367759e957523e734893c.tar.gz
* 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
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c2
1 files changed, 1 insertions, 1 deletions
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);