Mercurial > cpython-lru_cache-weakref
diff Python/pythonrun.c @ 1282:e0464e7115ca legacy-trunk
* 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
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Wed, 12 May 1993 08:24:20 +0000 |
| parents | 65a1e4e9cd54 |
| children | 4d292c7857d4 |
line wrap: on
line diff
--- a/Python/pythonrun.c Tue May 11 18:36:54 1993 +0000 +++ b/Python/pythonrun.c Wed May 12 08:24:20 1993 +0000 @@ -245,6 +245,7 @@ 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 @@ err_clear(); } writestring("\n", f); - printtraceback(f); } XDECREF(exception); XDECREF(v);
